rpm-utils: fix pkglist printout
Noticed this while doing composes recently. Closes: #833 Approved by: cgwalters
This commit is contained in:
parent
6b8f0f6b23
commit
f0ed8cdb88
@ -969,11 +969,12 @@ rpmostree_print_transaction (DnfContext *hifctx)
|
||||
-1);
|
||||
|
||||
if (packages->len > 0)
|
||||
{
|
||||
empty = FALSE;
|
||||
|
||||
g_print ("Installing %u packages:\n", packages->len);
|
||||
print_pkglist (packages);
|
||||
}
|
||||
}
|
||||
|
||||
{ g_autoptr(GPtrArray) packages = NULL;
|
||||
packages = dnf_goal_get_packages (dnf_context_get_goal (hifctx),
|
||||
@ -982,11 +983,12 @@ rpmostree_print_transaction (DnfContext *hifctx)
|
||||
-1);
|
||||
|
||||
if (packages->len > 0)
|
||||
{
|
||||
empty = FALSE;
|
||||
|
||||
g_print ("Removing %u packages:\n", packages->len);
|
||||
print_pkglist (packages);
|
||||
}
|
||||
}
|
||||
|
||||
if (empty)
|
||||
g_print ("Empty transaction\n");
|
||||
|
Loading…
Reference in New Issue
Block a user