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:
Duncan Overbruck 2021-06-12 15:54:09 +02:00
parent 9763a36cea
commit 92a21db4da
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -195,9 +195,7 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool force)
return rv;
}
if (state == XBPS_PKG_STATE_UNPACKED)
ttype = XBPS_TRANS_CONFIGURE;
else if (state == XBPS_PKG_STATE_NOT_INSTALLED)
if (state == XBPS_PKG_STATE_NOT_INSTALLED)
ttype = XBPS_TRANS_INSTALL;
if (!force && xbps_dictionary_get(pkg_repod, "hold"))