From 2eb722987dd1d308e1c116c2215c62fa6a658b0b Mon Sep 17 00:00:00 2001 From: bmah Date: Thu, 14 Nov 2002 21:01:17 +0000 Subject: 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. --- usr.sbin/pkg_install/lib/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.1