Pass `-9' flag to gzip(1), so that package is compressed using maximum

compression. Usually this gives gives extra 1-1.5%.

MFC after:	1 day
This commit is contained in:
sobomax 2002-01-17 10:51:39 +00:00
parent 1181ac380e
commit 6c7e725f50

View File

@ -29,6 +29,7 @@ static const char rcsid[] =
#include <err.h> #include <err.h>
#include <libgen.h> #include <libgen.h>
#include <signal.h> #include <signal.h>
#include <stdlib.h>
#include <sys/syslimits.h> #include <sys/syslimits.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
@ -77,9 +78,10 @@ pkg_perform(char **pkgs)
} }
if (UseBzip2) if (UseBzip2)
suf = "tbz2"; suf = "tbz2";
else if (compress) else if (compress) {
suf = "tgz"; suf = "tgz";
else setenv("GZIP", "-9", 0);
} else
suf = "tar"; suf = "tar";
if (InstalledPkg != NULL) if (InstalledPkg != NULL)