From cd9e0c8ec75bd5ca264942e2850ee896b1d73029 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 7 Feb 2018 14:23:39 -0500 Subject: [PATCH] util: Don't do libsolv cache for temporary sacks We should really only generate a cache for the current root's rpmdb; this function can be used for e.g. `db diff` and it doesn't make sense to generate a libsolv cache for arbitrary commits since it's unlikely they get reused. Closes: #1238 Approved by: jlebon --- src/libpriv/rpmostree-rpm-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpriv/rpmostree-rpm-util.c b/src/libpriv/rpmostree-rpm-util.c index 885114d1..cd1fda3b 100644 --- a/src/libpriv/rpmostree-rpm-util.c +++ b/src/libpriv/rpmostree-rpm-util.c @@ -809,7 +809,7 @@ get_sack_for_root (int dfd, g_autoptr(DnfSack) sack = dnf_sack_new (); dnf_sack_set_rootdir (sack, fullpath); - if (!dnf_sack_setup (sack, DNF_SACK_LOAD_FLAG_BUILD_CACHE, error)) + if (!dnf_sack_setup (sack, 0, error)) return FALSE; if (!dnf_sack_load_system_repo (sack, NULL, 0, error))