From b26f4068b73092aa4e78341dad2b43748dcbdf0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Thu, 20 Aug 2020 14:08:29 +0200 Subject: [PATCH] xbps-install: list reinstalled packages Before, they weren't printed at all. Additionally, this matches count from compute_transaction_stats. Closes: #321 [via git-merge-pr] --- bin/xbps-install/transaction.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/xbps-install/transaction.c b/bin/xbps-install/transaction.c index d747c760..ccad5255 100644 --- a/bin/xbps-install/transaction.c +++ b/bin/xbps-install/transaction.c @@ -95,6 +95,9 @@ show_package_list(struct transaction *trans, xbps_trans_type_t ttype, unsigned i tt = XBPS_TRANS_DOWNLOAD; } else { tt = xbps_transaction_pkg_type(obj); + if (ttype == XBPS_TRANS_INSTALL && tt == XBPS_TRANS_REINSTALL) { + tt = XBPS_TRANS_INSTALL; + } } buf = NULL;