From 77214be0798ccda8320d1ce30aa85d4b4da7ebc7 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 1 Apr 2014 22:40:15 -0400 Subject: [PATCH] treepkgdiff: Fix upgrade diff ordering Oops... --- src/rpmostree-treepkgdiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpmostree-treepkgdiff.c b/src/rpmostree-treepkgdiff.c index 1c9dcf6e..98e5db76 100644 --- a/src/rpmostree-treepkgdiff.c +++ b/src/rpmostree-treepkgdiff.c @@ -114,12 +114,12 @@ print_rpmdb_diff (GFile *oldroot, goto out; printed_header = FALSE; - FOR_PACKAGELIST(pkg, old_pkglist, i) + FOR_PACKAGELIST(pkg, new_pkglist, i) { _cleanup_hyquery_ HyQuery query = NULL; _cleanup_hypackagelist_ HyPackageList pkglist = NULL; - query = hy_query_create (new_sack); + query = hy_query_create (old_sack); hy_query_filter (query, HY_PKG_NAME, HY_EQ, hy_package_get_name (pkg)); hy_query_filter (query, HY_PKG_EVR, HY_NEQ, hy_package_get_evr (pkg)); hy_query_filter (query, HY_PKG_REPONAME, HY_EQ, HY_SYSTEM_REPO_NAME);