summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-08-25 01:01:08 +0000
committerobrien <obrien@FreeBSD.org>2002-08-25 01:01:08 +0000
commitf564aa3816f438c5c77be284e0e86883220fa4fd (patch)
treebce1f9fe94d194e27d0b19de71da5775bc21ec60 /usr.sbin/pkg_install
parent3fd56acea66215f7298b66a553547384a81268ed (diff)
downloadFreeBSD-src-f564aa3816f438c5c77be284e0e86883220fa4fd.zip
FreeBSD-src-f564aa3816f438c5c77be284e0e86883220fa4fd.tar.gz
Reorg just a tad to better express our bzip intentions.
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/create/perform.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c
index df4b5a2..859cc3e 100644
--- a/usr.sbin/pkg_install/create/perform.c
+++ b/usr.sbin/pkg_install/create/perform.c
@@ -57,7 +57,11 @@ pkg_perform(char **pkgs)
/* chop suffix off if already specified, remembering if we want to compress */
len = strlen(pkg);
if (len > 4) {
- if (!strcmp(&pkg[len - 4], ".tgz")) {
+ if (!strcmp(&pkg[len - 4], ".tbz")) {
+ Zipper = BZIP2;
+ pkg[len - 4] = '\0';
+ }
+ else if (!strcmp(&pkg[len - 4], ".tgz")) {
Zipper = GZIP;
pkg[len - 4] = '\0';
}
@@ -65,14 +69,10 @@ pkg_perform(char **pkgs)
Zipper = NONE;
pkg[len - 4] = '\0';
}
- else if (!strcmp(&pkg[len - 4], ".tbz")) {
- Zipper = BZIP2;
- pkg[len - 4] = '\0';
- }
}
if (Zipper == BZIP2) {
suf = "tbz";
- setenv("BZIP2", "-9", 0);
+ setenv("BZIP2", "--best", 0);
} else if (Zipper == GZIP) {
suf = "tgz";
setenv("GZIP", "-9", 0);
OpenPOWER on IntegriCloud