summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sysinstall/index.c')
-rw-r--r--usr.sbin/sysinstall/index.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/index.c b/usr.sbin/sysinstall/index.c
index 52838d9..c02d4ad 100644
--- a/usr.sbin/sysinstall/index.c
+++ b/usr.sbin/sysinstall/index.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: index.c,v 1.62 1999/02/02 16:57:55 jkh Exp $
+ * $Id: index.c,v 1.63 1999/02/15 04:57:07 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -475,13 +475,15 @@ pkg_fire(dialogMenuItem *self)
else if (ie->depc == 0) {
WINDOW *save = savescr();
- if (!msgYesNo("Do you really want to delete %s from the system?", kp->name))
- if (vsystem("pkg_delete %s %s", isDebug() ? "-v" : "", kp->name))
+ if (!msgYesNo("Do you really want to delete %s from the system?", kp->name)) {
+ if (vsystem("pkg_delete %s %s", isDebug() ? "-v" : "", kp->name)) {
msgConfirm("Warning: pkg_delete of %s failed.\n Check debug output for details.", kp->name);
+ }
else {
ie->installed = 0;
index_recorddeps(FALSE, lists->root, ie);
}
+ }
restorescr(save);
}
else
OpenPOWER on IntegriCloud