diff options
author | jkh <jkh@FreeBSD.org> | 1996-04-30 21:22:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-04-30 21:22:29 +0000 |
commit | 3e2b70bceab76ae09f1e2e48e52f4e065984b07e (patch) | |
tree | 807cf02aba9c8c2b99d976d80bcb5eb09219512c /release | |
parent | 6508c384594b98dc2b3136f33141f45f3e74ae10 (diff) | |
download | FreeBSD-src-3e2b70bceab76ae09f1e2e48e52f4e065984b07e.zip FreeBSD-src-3e2b70bceab76ae09f1e2e48e52f4e065984b07e.tar.gz |
Fix another couple of bogons with the package menu.
Diffstat (limited to 'release')
-rw-r--r-- | release/sysinstall/index.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/release/sysinstall/index.c b/release/sysinstall/index.c index fd24dd0..d3095f1 100644 --- a/release/sysinstall/index.c +++ b/release/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.25 1996/04/28 03:27:00 jkh Exp $ + * $Id: index.c,v 1.26 1996/04/30 06:00:06 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -389,11 +389,12 @@ pkg_checked(dialogMenuItem *self) int pkg_fire(dialogMenuItem *self) { + int ret; PkgNodePtr sp, kp = self->data, plist = (PkgNodePtr)self->aux; if (!plist) - return DITEM_FAILURE; - if (kp->type == PACKAGE) { + ret = DITEM_FAILURE; + else if (kp->type == PACKAGE) { sp = index_search(plist, kp->name, NULL); /* Not already selected? */ if (!sp) { @@ -408,14 +409,16 @@ pkg_fire(dialogMenuItem *self) msgInfo("Removed %s from selection list", kp->name); index_delete(sp); } + ret = DITEM_SUCCESS; } else { /* Not a package, must be a directory */ int p, s; p = s = 0; index_menu(kp, plist, &p, &s); + ret = DITEM_SUCCESS | DITEM_CONTINUE; } - return DITEM_SUCCESS; + return ret; } void @@ -499,8 +502,6 @@ index_menu(PkgNodePtr top, PkgNodePtr plist, int *pos, int *scroll) } continue; } - else if (!rval && hasPackages) - continue; } items_free(nitems, &curr, &max); restorescr(w); |