Fix mishandling of extraction return status in commit.

This commit is contained in:
Jordan K. Hubbard 1997-01-16 15:00:25 +00:00
parent 280a2265d9
commit 306e292622
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21775
3 changed files with 6 additions and 0 deletions

View File

@ -710,6 +710,8 @@ installCommit(dialogMenuItem *self)
i = distExtractAll(self);
if (DITEM_STATUS(i) == DITEM_SUCCESS && (!need_bin || !(Dists & DIST_BIN)))
i = installFixup(self);
else
i = DITEM_FAILURE;
variable_set2(SYSTEM_STATE, DITEM_STATUS(i) == DITEM_FAILURE ? "error-install" : "full-install");
return i | DITEM_RECREATE;
}

View File

@ -710,6 +710,8 @@ installCommit(dialogMenuItem *self)
i = distExtractAll(self);
if (DITEM_STATUS(i) == DITEM_SUCCESS && (!need_bin || !(Dists & DIST_BIN)))
i = installFixup(self);
else
i = DITEM_FAILURE;
variable_set2(SYSTEM_STATE, DITEM_STATUS(i) == DITEM_FAILURE ? "error-install" : "full-install");
return i | DITEM_RECREATE;
}

View File

@ -710,6 +710,8 @@ installCommit(dialogMenuItem *self)
i = distExtractAll(self);
if (DITEM_STATUS(i) == DITEM_SUCCESS && (!need_bin || !(Dists & DIST_BIN)))
i = installFixup(self);
else
i = DITEM_FAILURE;
variable_set2(SYSTEM_STATE, DITEM_STATUS(i) == DITEM_FAILURE ? "error-install" : "full-install");
return i | DITEM_RECREATE;
}