bin/xbps-install: fix regression in small transaction stats

fixes #242
This commit is contained in:
Duncan Overbruck 2020-03-04 12:46:44 +01:00
parent 40e14203f7
commit 4d40179a8a
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -125,6 +125,7 @@ show_package_list(struct transaction *trans, xbps_trans_type_t ttype, unsigned i
xbps_dictionary_get_bool(obj, "download", &dload);
tt = xbps_transaction_pkg_type(obj);
buf = NULL;
if (tt == XBPS_TRANS_UPDATE) {
/* get installed pkgver */
ipkgd = xbps_pkgdb_get_pkg(trans->xhp, pkgname);