upgrade: Print changed packages again
First I noticed we needed to query the new default *after* the transaction had run. Then, I noticed the obvious embarassing logic error. Fixes: 3f1e7c85a18182669899f4065d23fec6ac0962c Closes: #396 Closes: #397 Approved by: jlebon
This commit is contained in:
parent
64c6f8d906
commit
454139d41b
@ -129,14 +129,14 @@ rpmostree_builtin_upgrade (int argc,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
new_default_deployment = rpmostree_os_dup_default_deployment (os_proxy);
|
|
||||||
|
|
||||||
if (!rpmostree_transaction_get_response_sync (sysroot_proxy,
|
if (!rpmostree_transaction_get_response_sync (sysroot_proxy,
|
||||||
transaction_address,
|
transaction_address,
|
||||||
cancellable,
|
cancellable,
|
||||||
error))
|
error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
new_default_deployment = rpmostree_os_dup_default_deployment (os_proxy);
|
||||||
|
|
||||||
if (opt_preview || opt_check)
|
if (opt_preview || opt_check)
|
||||||
{
|
{
|
||||||
g_autoptr(GVariant) result = NULL;
|
g_autoptr(GVariant) result = NULL;
|
||||||
@ -169,7 +169,7 @@ rpmostree_builtin_upgrade (int argc,
|
|||||||
if (previous_default_deployment == new_default_deployment)
|
if (previous_default_deployment == new_default_deployment)
|
||||||
changed = FALSE;
|
changed = FALSE;
|
||||||
else
|
else
|
||||||
changed = g_variant_equal (previous_default_deployment, new_default_deployment);
|
changed = !g_variant_equal (previous_default_deployment, new_default_deployment);
|
||||||
|
|
||||||
if (!changed)
|
if (!changed)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user