diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-19 10:27:12 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-19 10:27:12 +0000 |
commit | 64f19380c218c5b4ad63d11556f913bf68753e64 (patch) | |
tree | e900a4e6fa95b04124110556af5bf33aa7a94664 /usr.sbin/sysinstall | |
parent | 1d0095968bbcdd83e153873f85d70bd88bf7f314 (diff) | |
download | FreeBSD-src-64f19380c218c5b4ad63d11556f913bf68753e64.zip FreeBSD-src-64f19380c218c5b4ad63d11556f913bf68753e64.tar.gz |
Correct a real brain-o in my check for when a "fixup" should be run.
Don't recreate parent menus just for submenus - it's irritating.
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r-- | usr.sbin/sysinstall/dmenu.c | 2 | ||||
-rw-r--r-- | usr.sbin/sysinstall/install.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/sysinstall/dmenu.c b/usr.sbin/sysinstall/dmenu.c index c8094d8..2bdf762 100644 --- a/usr.sbin/sysinstall/dmenu.c +++ b/usr.sbin/sysinstall/dmenu.c @@ -52,7 +52,7 @@ int dmenuSubmenu(dialogMenuItem *tmp) { return (dmenuOpenSimple((DMenu *)(tmp->data), FALSE) ? DITEM_SUCCESS : DITEM_FAILURE) | - DITEM_RECREATE; + DITEM_RESTORE; } int diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index 27d826e..61fe696 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/install.c @@ -716,10 +716,10 @@ installCommit(dialogMenuItem *self) need_bin = Dists & DIST_BIN; i = distExtractAll(self); - if (DITEM_STATUS(i) == DITEM_SUCCESS && (!need_bin || !(Dists & DIST_BIN))) - i = installFixup(self); - else - i = DITEM_FAILURE; + if (DITEM_STATUS(i) == DITEM_SUCCESS) { + if (need_bin && !(Dists & DIST_BIN)) + i = installFixup(self); + } variable_set2(SYSTEM_STATE, DITEM_STATUS(i) == DITEM_FAILURE ? "error-install" : "full-install"); return i | DITEM_RESTORE; } |