From b27339f1bda22972613bd69d9f876becdeb6d53a Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Wed, 19 Sep 2018 16:39:06 -0400 Subject: [PATCH] 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 --- src/app/rpmostree-db-builtin-diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/rpmostree-db-builtin-diff.c b/src/app/rpmostree-db-builtin-diff.c index 9cde2f4a..69d4f9a1 100644 --- a/src/app/rpmostree-db-builtin-diff.c +++ b/src/app/rpmostree-db-builtin-diff.c @@ -163,7 +163,7 @@ rpmostree_db_builtin_diff (int argc, char **argv, new_desc = "pending deployment"; g_autoptr(OstreeDeployment) 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"); if (!get_checksum_from_deployment (repo, pending, &new_checksum, error)) return FALSE;