Subject: pkg/5456: pkg_info fails on URLs
To: None <gnats-bugs@gnats.netbsd.org>
From: Heiko W.Rupp <hwr@pilhuhn.de>
List: netbsd-bugs
Date: 05/15/1998 12:29:32
>Number: 5456
>Category: pkg
>Synopsis: pkg_info fails on URLs
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 15 03:35:01 1998
>Last-Modified:
>Originator: Heiko W.Rupp
>Organization:
private
>Release: NetBSD 1.3.1
>Environment:
System: NetBSD snert 1.3.1 NetBSD 1.3.1 (SNERT) #4: Fri May 15 10:40:24 MEST 1998 hwr@snert:/usr/src/sys/arch/i386/compile/SNERT i386
>Description:
pkg_info fails to display the info for a package, when it is
given a ftp URL instead of a local file name
>How-To-Repeat:
snert!26> pkg_info !*
pkg_info
ftp://ftp.netbsd.org/pub/NetBSD/packages/1.3/i386/All/top-3.5beta7.tgz
tar: Hmm, this doesn't look like a tar archive.
tar: Skipping to next file header...
tar: +* not found in archive
pkg_info: unable to open +CONTENTS file
Then:
ftp the file to a local dir and
snert!27> pkg_info top-3.5beta7.tgz
Information for top-3.5beta7.tgz:
Comment:
The ubiquitous system monitoring utility.
Description:
TOP
[...]
pkg_info -v says:
pkg_info -v
ftp://ftp.netbsd.org/pub/NetBSD/packages/1.3/i386/All/socket-1.1.tgz
Trying to fetch
ftp://ftp.netbsd.org/pub/NetBSD/packages/1.3/i386/All/socket-1.1.tgz.
Extracting from FTP connection into /var/tmp/instmp.03540a
+CONTENTS
+COMMENT
+DESC
+MTREE_DIRS
bin/socket
man/man1/socket.1
tar command returns 0 status
Requested space: 256 bytes, free space: 68918272 bytes in
/var/tmp/instmp.03540b
tar: Hmm, this doesn't look like a tar archive.
tar: Skipping to next file header...
tar: +* not found in archive
pkg_info: unable to open +CONTENTS file
$ cd /var/tmp/instmp.03540a
$ ls -ls
1 -rw-r--r-- 1 hwr wheel 43 Feb 24 01:55 +COMMENT
1 -rw-r--r-- 1 hwr wheel 244 Feb 24 01:55 +CONTENTS
1 -rw-r--r-- 1 hwr wheel 458 Feb 24 01:55 +DESC
4 -rw-r--r-- 1 hwr wheel 3147 Dec 17 12:46 +MTREE_DIRS
1 drwxrwxr-x 2 hwr wheel 512 May 15 12:28 bin/
1 drwxrwxr-x 3 hwr wheel 512 May 15 12:28 man/
>Fix:
Dunno
>Audit-Trail:
>Unformatted: