diff options
author | jkh <jkh@FreeBSD.org> | 1999-05-27 10:32:50 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-05-27 10:32:50 +0000 |
commit | 4e040793c0e05bef154e78a09e4b935ec7211c08 (patch) | |
tree | cba908c43d1dc405a0355ca3366a996075be6f56 /usr.sbin/sysinstall/package.c | |
parent | 5f3f513bc6580435bbbd98c35680c067ddc41886 (diff) | |
download | FreeBSD-src-4e040793c0e05bef154e78a09e4b935ec7211c08.zip FreeBSD-src-4e040793c0e05bef154e78a09e4b935ec7211c08.tar.gz |
Do a clean-up pass on error/warning messages.
Diffstat (limited to 'usr.sbin/sysinstall/package.c')
-rw-r--r-- | usr.sbin/sysinstall/package.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/usr.sbin/sysinstall/package.c b/usr.sbin/sysinstall/package.c index 70d9602..7cc980e 100644 --- a/usr.sbin/sysinstall/package.c +++ b/usr.sbin/sysinstall/package.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: package.c,v 1.75 1999/05/15 14:34:22 jkh Exp $ + * $Id: package.c,v 1.76 1999/05/18 00:44:28 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -218,12 +218,8 @@ package_extract(Device *dev, char *name, Boolean depended) i = waitpid(pid, &tot, 0); if (sigpipe_caught || i < 0 || WEXITSTATUS(tot)) { ret = DITEM_FAILURE | DITEM_RESTORE; - if (variable_get(VAR_NO_CONFIRM)) - msgNotify("Add of package %s aborted, error code %d -\n" - "Please check the debug screen for more info.", name, WEXITSTATUS(tot)); - else - msgConfirm("Add of package %s aborted, error code %d -\n" - "Please check the debug screen for more info.", name, WEXITSTATUS(tot)); + msgCNotify("Add of package %s aborted, error code %d -\n" + "Please check the debug screen for more info.", name, WEXITSTATUS(tot)); } else msgNotify("Package %s was added successfully", name); @@ -237,12 +233,8 @@ package_extract(Device *dev, char *name, Boolean depended) } else { dialog_clear_norefresh(); - if (variable_get(VAR_NO_CONFIRM)) - msgNotify("Unable to fetch package %s from selected media.\n" - "No package add will be done.", name); - else - msgConfirm("Unable to fetch package %s from selected media.\n" - "No package add will be done.", name); + msgCNotify("Unable to fetch package %s from selected media.\n" + "No package add will be done.", name); ret = DITEM_FAILURE | DITEM_RESTORE; } signal(SIGPIPE, SIG_IGN); |