Do not configure pkg if there's an update in transaction.
This fixes the following problem: - pkg is installed with state "unpacked". - There's an update of pkg in transaction. - xbps tries to configure the pkg because its state is "unpacked", therefore ignoring the update.
This commit is contained in:
1 parent
cf1c42a109
commit
9489f8a3dc
2 files changed
+6
-1
No files matched your search
@@ -145,7 +145,7 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, int action)
|
||||
if ((rv = xbps_set_pkg_state_dictionary(pkg_repod, state)) != 0)
|
||||
return rv;
|
||||
|
||||
if (state == XBPS_PKG_STATE_UNPACKED)
|
||||
if ((action == TRANS_INSTALL) && (state == XBPS_PKG_STATE_UNPACKED))
|
||||
reason = "configure";
|
||||
else if (state == XBPS_PKG_STATE_NOT_INSTALLED)
|
||||
reason = "install";
|
||||
|
||||
Reference in new issue
Block a user