Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/pkg_install/add Pull up revision 1.40 (request...



details:   https://anonhg.NetBSD.org/src/rev/836cf6558075
branches:  netbsd-1-4
changeset: 469908:836cf6558075
user:      he <he%NetBSD.org@localhost>
date:      Mon Dec 20 15:08:12 1999 +0000

description:
Pull up revision 1.40 (requested by hubertf):
  Apply forced operation (-f switch) recursively.

diffstat:

 usr.sbin/pkg_install/add/perform.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r b53f08142be2 -r 836cf6558075 usr.sbin/pkg_install/add/perform.c
--- a/usr.sbin/pkg_install/add/perform.c        Mon Dec 20 15:06:57 1999 +0000
+++ b/usr.sbin/pkg_install/add/perform.c        Mon Dec 20 15:08:12 1999 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: perform.c,v 1.29.2.3 1999/09/13 21:57:36 he Exp $      */
+/*     $NetBSD: perform.c,v 1.29.2.4 1999/12/20 15:08:12 he Exp $      */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.29.2.3 1999/09/13 21:57:36 he Exp $");
+__RCSID("$NetBSD: perform.c,v 1.29.2.4 1999/12/20 15:08:12 he Exp $");
 #endif
 #endif
 
@@ -327,8 +327,9 @@
                                        if (cp) {
                                                if (Verbose)
                                                        printf("Loading it from %s.\n", cp);
-                                               if (vsystem("%s/pkg_add %s%s %s%s",
+                                               if (vsystem("%s/pkg_add %s%s%s %s%s",
                                                        BINDIR,
+                                                       Force ? "-f " : "",
                                                        Prefix ? "-p " : "",
                                                        Prefix ? Prefix : "",
                                                        Verbose ? "-v " : "", cp)) {
@@ -365,8 +366,9 @@
                                                                    p->name, CONTENTS_FNAME);
                                                                if (!Force)
                                                                        ++code;
-                                                       } else if (vsystem("(pwd; cat %s) | pkg_add %s%s %s-S",
+                                                       } else if (vsystem("(pwd; cat %s) | pkg_add %s%s%s %s-S",
                                                                        CONTENTS_FNAME,
+                                                                       Force ? "-f " : "",
                                                                        Prefix ? "-p " : "",
                                                                        Prefix ? Prefix : "",
                                                                Verbose ? "-v " : "")) {



Home | Main Index | Thread Index | Old Index