app/db-diff: Drop redundant check
By the way `ostree_sysroot_query_deployments_for()` is defined, the pending deployment is never the same as the booted deployment, so drop that redundant check. Closes: #1565 Approved by: cgwalters
This commit is contained in:
parent
ca6f32371a
commit
b27339f1bd
@ -163,7 +163,7 @@ rpmostree_db_builtin_diff (int argc, char **argv,
|
|||||||
new_desc = "pending deployment";
|
new_desc = "pending deployment";
|
||||||
g_autoptr(OstreeDeployment) pending = NULL;
|
g_autoptr(OstreeDeployment) pending = NULL;
|
||||||
ostree_sysroot_query_deployments_for (sysroot, NULL, &pending, NULL);
|
ostree_sysroot_query_deployments_for (sysroot, NULL, &pending, NULL);
|
||||||
if (!pending || ostree_deployment_equal (pending, booted))
|
if (!pending)
|
||||||
return glnx_throw (error, "No pending deployment to diff against");
|
return glnx_throw (error, "No pending deployment to diff against");
|
||||||
if (!get_checksum_from_deployment (repo, pending, &new_checksum, error))
|
if (!get_checksum_from_deployment (repo, pending, &new_checksum, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user