summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-29 22:50:05 +0000
committerrillig <rillig>2007-11-29 22:50:05 +0000
commitadaf93f3783c10c7f4878641ef4742243a786017 (patch)
tree8fbfc9e6e9c9e16fd7fcd4cbab8646f088a696ca /pkgtools
parent1b698c8600f95b7722811d3c9a1632cb4430ca78 (diff)
downloadpkgsrc-adaf93f3783c10c7f4878641ef4742243a786017.tar.gz
Remove the package metadata even if it is read-only, without prompting
the user.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/delete/perform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/delete/perform.c b/pkgtools/pkg_install/files/delete/perform.c
index 35db572624d..b4c119c7241 100644
--- a/pkgtools/pkg_install/files/delete/perform.c
+++ b/pkgtools/pkg_install/files/delete/perform.c
@@ -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 @@ pkg_do(char *pkg)
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;