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.
This commit is contained in:
Bruce A. Mah 2002-11-14 21:01:17 +00:00
parent 26532c3696
commit 2930533d3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106923

View File

@ -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);