From efe8372376942e0124ffb8543c12bec8ceaf3641 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Tue, 29 Sep 2020 18:30:16 +0200 Subject: [PATCH] [PATCH] Tell libsolv to prefer rpmdb in home directory. The rpm package on Debian is patched to always use the RPMDB in a user's home directory. Libsolv is not patched in such a way. Since DNF is mixing librpm and libsolv, strange situations occur. Tell libsolv to prefer the rpmdb in the user's home directory. Gbp-Pq: Name 0005-Tell-libsolv-to-prefer-rpmdb-in-home-directory.patch --- libdnf/dnf-sack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdnf/dnf-sack.cpp b/libdnf/dnf-sack.cpp index e62ccff..b7afd12 100644 --- a/libdnf/dnf-sack.cpp +++ b/libdnf/dnf-sack.cpp @@ -1803,7 +1803,7 @@ dnf_sack_load_system_repo(DnfSack *sack, HyRepo a_hrepo, int flags, GError **err repo = repo_create(pool, HY_SYSTEM_REPO_NAME); g_debug("fetching rpmdb"); - int flagsrpm = REPO_REUSE_REPODATA | RPM_ADD_WITH_HDRID | REPO_USE_ROOTDIR; + int flagsrpm = REPO_REUSE_REPODATA | RPM_ADD_WITH_HDRID | REPO_USE_ROOTDIR | RPMDB_USE_HOMEDIR; int rc = repo_add_rpmdb_reffp(repo, NULL, flagsrpm); if (!rc) { repoImpl->state_main = _HY_LOADED_FETCH; -- 2.30.2