From 92a21db4da60c806604c2fb97427a12c8b8cdd7f Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Sat, 12 Jun 2021 15:54:09 +0200 Subject: [PATCH] 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. --- lib/transaction_ops.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/transaction_ops.c b/lib/transaction_ops.c index 5c0deda4..24fc1f1c 100644 --- a/lib/transaction_ops.c +++ b/lib/transaction_ops.c @@ -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"))