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:
parent
1181ac380e
commit
6c7e725f50
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user