Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/pkg_install/create Pull up revision 1.24 (requ...
details: https://anonhg.NetBSD.org/src/rev/eb5a3cbb1e07
branches: netbsd-1-5
changeset: 490367:eb5a3cbb1e07
user: he <he%NetBSD.org@localhost>
date: Fri Dec 15 04:06:32 2000 +0000
description:
Pull up revision 1.24 (requested by hubertf):
Accept ``.tbz'' as an alternative suffix; compress with bzip2 if
a .tbz suffix is given. Fix pkg_info to work via ftp, either
via URL on command line or from PKG_PATH environment variable.
diffstat:
usr.sbin/pkg_install/create/perform.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r e6e1e108871a -r eb5a3cbb1e07 usr.sbin/pkg_install/create/perform.c
--- a/usr.sbin/pkg_install/create/perform.c Fri Dec 15 04:06:05 2000 +0000
+++ b/usr.sbin/pkg_install/create/perform.c Fri Dec 15 04:06:32 2000 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: perform.c,v 1.22 1999/12/20 03:25:58 hubertf Exp $ */
+/* $NetBSD: perform.c,v 1.22.4.1 2000/12/15 04:06:32 he Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.22 1999/12/20 03:25:58 hubertf Exp $");
+__RCSID("$NetBSD: perform.c,v 1.22.4.1 2000/12/15 04:06:32 he Exp $");
#endif
#endif
@@ -62,7 +62,10 @@
args[nargs++] = "-c";
args[nargs++] = "-f";
args[nargs++] = tball;
- if (strchr(suffix, 'z'))/* Compress/gzip? */
+ if (strstr(suffix, "bz")) {
+ args[nargs++] = "--use-compress-program";
+ args[nargs++] = "bzip2";
+ } else if (strchr(suffix, 'z'))/* Compress/gzip? */
args[nargs++] = "-z";
if (Dereference)
args[nargs++] = "-h";
Home |
Main Index |
Thread Index |
Old Index