rpm-utils: fix pkglist printout

Noticed this while doing composes recently.

Closes: #833
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2017-06-15 11:43:10 -04:00 committed by Atomic Bot
parent 6b8f0f6b23
commit f0ed8cdb88

View File

@ -969,10 +969,11 @@ rpmostree_print_transaction (DnfContext *hifctx)
-1);
if (packages->len > 0)
empty = FALSE;
g_print ("Installing %u packages:\n", packages->len);
print_pkglist (packages);
{
empty = FALSE;
g_print ("Installing %u packages:\n", packages->len);
print_pkglist (packages);
}
}
{ g_autoptr(GPtrArray) packages = NULL;
@ -982,10 +983,11 @@ rpmostree_print_transaction (DnfContext *hifctx)
-1);
if (packages->len > 0)
empty = FALSE;
g_print ("Removing %u packages:\n", packages->len);
print_pkglist (packages);
{
empty = FALSE;
g_print ("Removing %u packages:\n", packages->len);
print_pkglist (packages);
}
}
if (empty)