diff options
Diffstat (limited to 'usr.sbin/pkg_install/create/main.c')
-rw-r--r-- | usr.sbin/pkg_install/create/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c index 7b1248a..f309853 100644 --- a/usr.sbin/pkg_install/create/main.c +++ b/usr.sbin/pkg_install/create/main.c @@ -16,7 +16,7 @@ __FBSDID("$FreeBSD$"); #include "lib.h" #include "create.h" -static char Options[] = "YNOhvyf:p:P:c:d:i:I:k:K:r:t:X:D:m:s:o:b:"; +static char Options[] = "YNOhjvyzf:p:P:c:d:i:I:k:K:r:t:X:D:m:s:o:b:"; char *Prefix = NULL; char *Comment = NULL; @@ -37,7 +37,7 @@ char *InstalledPkg = NULL; char PlayPen[FILENAME_MAX]; int Dereference = FALSE; int PlistOnly = FALSE; -int UseBzip2 = FALSE; +enum zipper Zipper = GZIP; static void usage __P((void)); @@ -135,7 +135,12 @@ main(int argc, char **argv) break; case 'y': - UseBzip2 = TRUE; + case 'j': + Zipper = BZIP2; + break; + + case 'z': + Zipper = GZIP; break; case 'b': |