From: Mihai Moldovan Date: Tue, 29 Sep 2020 16:30:16 +0000 (+0200) Subject: [PATCH] Tell libsolv to prefer rpmdb in home directory. X-Git-Tag: archive/raspbian/0.69.0-2+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0d728b45a0ad2fc72b401fdb988357cee148dc71;p=libdnf.git [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 --- 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;