pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/delete Remove the package m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb2027c0672c
branches:  trunk
changeset: 535903:cb2027c0672c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 29 22:50:05 2007 +0000

description:
Remove the package metadata even if it is read-only, without prompting
the user.

diffstat:

 pkgtools/pkg_install/files/delete/perform.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e8f60da15400 -r cb2027c0672c pkgtools/pkg_install/files/delete/perform.c
--- a/pkgtools/pkg_install/files/delete/perform.c       Thu Nov 29 22:47:28 2007 +0000
+++ b/pkgtools/pkg_install/files/delete/perform.c       Thu Nov 29 22:50:05 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.19 2007/08/08 22:33:39 joerg Exp $       */
+/*     $NetBSD: perform.c,v 1.20 2007/11/29 22:50:05 rillig Exp $      */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -11,7 +11,7 @@
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.19 2007/08/08 22:33:39 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.20 2007/11/29 22:50:05 rillig Exp $");
 #endif
 #endif
 
@@ -849,7 +849,7 @@
                                warnx("%s is not empty", LogDir);
                        return 0;
                } else {
-                       if (fexec(REMOVE_CMD, "-r", LogDir, NULL)) {
+                       if (fexec(REMOVE_CMD, "-rf", LogDir, NULL)) {
                                warnx("couldn't remove log entry in %s, deinstall failed", LogDir);
                                if (!Force)
                                        return 1;



Home | Main Index | Thread Index | Old Index