Date: Mon, 20 May 2002 14:11:05 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/38360: pkg_info does not handle relative paths to package filenames Message-ID: <200205202111.g4KLB5jj087542@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 38360 >Category: bin >Synopsis: pkg_info does not handle relative paths to package filenames >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 20 14:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: John Baldwin >Release: 4.5-STABLE >Organization: The Weather Channel >Environment: FreeBSD randi.atl.weather.com 4.5-STABLE FreeBSD 4.5-STABLE #3: Mon Apr 29 13:12:20 EDT 2002 root@randi.atl.weather.com:/usr/obj/usr/src/sys/GENERIC-SMP i386 >Description: pkg_info works ok on a package if the file is in the current directory and no directory pathnames are specified or if an absolute path is specified. It also seems to work if the relative path starts with a dot. >How-To-Repeat: > pwd /n/ud2host/ud2/jbaldwin/work/pkg/cd/packages/All > ll bash-2.05a.tgz -rw-r--r-- 1 jbaldwin xlhost 775900 May 15 22:52 bash-2.05a.tgz > pkg_info -I bash-2.05a.tgz bash-2.05a.tgz The GNU Bourne Again Shell > pkg_info -I ${PWD}/bash-2.05a.tgz bash-2.05a.tgz The GNU Bourne Again Shell > pkg_info -I ../All/bash-2.05a.tgz bash-2.05a.tgz The GNU Bourne Again Shell > cd .. > pkg_info -I All/bash-2.05a.tgz pkg_info: can't find package `bash-2.05a.tgz' installed or in a file! > ll All/bash-2.05a.tgz -rw-r--r-- 1 jbaldwin xlhost 775900 May 15 22:52 All/bash-2.05a.tgz >Fix: None. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205202111.g4KLB5jj087542>