mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
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:
parent
26532c3696
commit
2930533d3f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106923
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user