diff options
author | bmah <bmah@FreeBSD.org> | 2002-11-14 21:01:17 +0000 |
---|---|---|
committer | bmah <bmah@FreeBSD.org> | 2002-11-14 21:01:17 +0000 |
commit | 2eb722987dd1d308e1c116c2215c62fa6a658b0b (patch) | |
tree | 0da5891df05e5ed7b43ad8e170d9231fcec1a024 /usr.sbin | |
parent | f38cf8f61b2cd423b5fcb664b0a7e579383801ef (diff) | |
download | FreeBSD-src-2eb722987dd1d308e1c116c2215c62fa6a658b0b.zip FreeBSD-src-2eb722987dd1d308e1c116c2215c62fa6a658b0b.tar.gz |
Assume that packages passed on stdin are in bzip2 format, not gzip.
(sysinstall depends on this feature for package addition.)
Comment on hard-coded bzip2 usage in the spirit of rev. 1.58.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 3ed4b38..2ad1bc2 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -348,7 +348,8 @@ unpack(const char *pkg, const char *flist) } } else - strcpy(args, "-z"); + /* XXX: need to handle .tgz also */ + strcpy(args, "-j"); strcat(args, " -xpf"); if (vsystem("tar %s '%s' %s", args, pkg, flist ? flist : "")) { warnx("tar extract of %s failed!", pkg); |