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

View File

@@ -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"))