Subject: pkg_delete -f and +REQUIRED_BY
To: None <tech-pkg@netbsd.org>
From: David Brownlee <abs@anim.dreamworks.com>
List: tech-pkg
Date: 03/15/1999 17:10:46
pkg_delete -f currently will not delete a package if it is
required by another package (contrary to the manpage).
Would anyone have any objections if I 'fix' the code to match
the manpage (in full knowledge that '-f' is a particilarly
bad thing to ever be doing :)
Index: delete/perform.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/pkg_install/delete/perform.c,v
retrieving revision 1.19
diff -u -r1.19 perform.c
--- perform.c 1999/03/09 10:01:12 1.19
+++ perform.c 1999/03/16 01:10:22
@@ -552,7 +552,8 @@
chdir(LogDir); /* CWD was changed by require_find() */
if (!Recurse_up) {
require_print();
- return 1;
+ if (!Force)
+ return 1;
} else
require_delete(home, 0);
}
David/absolute
-=- "There will not be a send-off, a funeral or mass" -=-