From nobody@www.freebsd.org  Mon May 20 14:11:05 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 2845937B401
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 May 2002 14:11:05 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4KLB5hG087543
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 May 2002 14:11:05 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g4KLB5jj087542;
	Mon, 20 May 2002 14:11:05 -0700 (PDT)
Message-Id: <200205202111.g4KLB5jj087542@www.freebsd.org>
Date: Mon, 20 May 2002 14:11:05 -0700 (PDT)
From: John Baldwin <jhb@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg_info does not handle relative paths to package filenames
X-Send-Pr-Version: www-1.0

>Number:         38360
>Category:       bin
>Synopsis:       pkg_info does not handle relative paths to package filenames
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sobomax
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 20 14:20:01 PDT 2002
>Closed-Date:    Mon May 20 19:47:46 PDT 2002
>Last-Modified:  Mon May 20 19:47:46 PDT 2002
>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:
Responsible-Changed-From-To: freebsd-bugs->wes 
Responsible-Changed-By: wes 
Responsible-Changed-When: Mon May 20 18:43:05 PDT 2002 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38360 
State-Changed-From-To: open->closed 
State-Changed-By: wes 
State-Changed-When: Mon May 20 19:46:41 PDT 2002 
State-Changed-Why:  
Hah!  sobomax already fixed and MFC'd this.  ;^) 


Responsible-Changed-From-To: wes->sobomax 
Responsible-Changed-By: wes 
Responsible-Changed-When: Mon May 20 19:46:41 PDT 2002 
Responsible-Changed-Why:  
Fixed and MFC'd by sobomax on 05/02/02 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38360 
>Unformatted:
