mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
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.
This commit is contained in:
parent
0ebf0addab
commit
b4045b65fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21861
@ -52,7 +52,7 @@ int
|
||||
dmenuSubmenu(dialogMenuItem *tmp)
|
||||
{
|
||||
return (dmenuOpenSimple((DMenu *)(tmp->data), FALSE) ? DITEM_SUCCESS : DITEM_FAILURE) |
|
||||
DITEM_RECREATE;
|
||||
DITEM_RESTORE;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ int
|
||||
dmenuSubmenu(dialogMenuItem *tmp)
|
||||
{
|
||||
return (dmenuOpenSimple((DMenu *)(tmp->data), FALSE) ? DITEM_SUCCESS : DITEM_FAILURE) |
|
||||
DITEM_RECREATE;
|
||||
DITEM_RESTORE;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ int
|
||||
dmenuSubmenu(dialogMenuItem *tmp)
|
||||
{
|
||||
return (dmenuOpenSimple((DMenu *)(tmp->data), FALSE) ? DITEM_SUCCESS : DITEM_FAILURE) |
|
||||
DITEM_RECREATE;
|
||||
DITEM_RESTORE;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user