diff options
author | jkh <jkh@FreeBSD.org> | 1994-11-17 10:35:04 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-11-17 10:35:04 +0000 |
commit | 5d00f601402a39fc0ae60fd3a327d97639f648bc (patch) | |
tree | 79b90f577ddefb4403e1bc2e0171291cb4c11bfe /usr.sbin | |
parent | 6593f9b699e2eb519caf46c29559e3ec1a82d956 (diff) | |
download | FreeBSD-src-5d00f601402a39fc0ae60fd3a327d97639f648bc.zip FreeBSD-src-5d00f601402a39fc0ae60fd3a327d97639f648bc.tar.gz |
Remove the QUERY_* functions. I don't think they're as good an
idea as I apparently once did.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/create/pl.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.sbin/pkg_install/create/pl.c b/usr.sbin/pkg_install/create/pl.c index a76da6a..0d87779 100644 --- a/usr.sbin/pkg_install/create/pl.c +++ b/usr.sbin/pkg_install/create/pl.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: pl.c,v 1.3 1994/08/28 14:15:23 jkh Exp $"; +static const char *rcsid = "$Id: pl.c,v 1.4 1994/08/29 16:31:38 adam Exp $"; #endif /* @@ -25,14 +25,6 @@ static const char *rcsid = "$Id: pl.c,v 1.3 1994/08/28 14:15:23 jkh Exp $"; #include "lib.h" #include "create.h" -#define QUERY_GZIP \ -"File '%s' appears to be gzip'd.\nWould you like to unpack it first" -#define UNZIP "gzip -d %s" - -#define QUERY_COMPRESS \ -"File '%s' appears to be compressed.\nWould you like to unpack it first" -#define UNCOMPRESS "compress -d %s" - /* Check a list for files that require preconversion */ void check_list(char *home, Package *pkg) @@ -54,14 +46,6 @@ check_list(char *home, Package *pkg) else if (p->type == PLIST_FILE) { cmd[0] = '\0'; sprintf(name, "%s/%s", there ? there : where, p->name); - /* gzip? */ - if ((suffix(name, "gz") || suffix(name, "z")) && - y_or_n(TRUE, QUERY_GZIP, name)) - sprintf(cmd, UNZIP, name); - - /* Compress? */ - else if (suffix(name, "Z") && y_or_n(TRUE, QUERY_COMPRESS, name)) - sprintf(cmd, UNCOMPRESS, name); if (*cmd) { if (Verbose) |