lib/transaction_ops.c: do not change the transaction mode of unpacked packages
Those packages are going to be either updated or uninstalled, changing the transaction type breaks this. There is no apperent reason to change the type anyways.
This commit is contained in:
parent
9763a36cea
commit
92a21db4da
@ -195,9 +195,7 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool force)
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state == XBPS_PKG_STATE_UNPACKED)
|
if (state == XBPS_PKG_STATE_NOT_INSTALLED)
|
||||||
ttype = XBPS_TRANS_CONFIGURE;
|
|
||||||
else if (state == XBPS_PKG_STATE_NOT_INSTALLED)
|
|
||||||
ttype = XBPS_TRANS_INSTALL;
|
ttype = XBPS_TRANS_INSTALL;
|
||||||
|
|
||||||
if (!force && xbps_dictionary_get(pkg_repod, "hold"))
|
if (!force && xbps_dictionary_get(pkg_repod, "hold"))
|
||||||
|
Loading…
Reference in New Issue
Block a user