From a4a58c0525ed5ee8980d5a5c9d5382dc42630fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Tue, 25 Jun 2024 13:38:14 +0200 Subject: [PATCH] Set pool flag to fix pool_addfileprovides_queue() without filelists.xml Since dnf4 now also conditionally load filelists it ran into the same problem as dnf5 here: https://github.com/rpm-software-management/dnf5/issues/520 Additional details in: https://github.com/openSUSE/libsolv/pull/531 --- libdnf/dnf-sack.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libdnf/dnf-sack.cpp b/libdnf/dnf-sack.cpp index 3c3a76578..b141fc622 100644 --- a/libdnf/dnf-sack.cpp +++ b/libdnf/dnf-sack.cpp @@ -185,6 +185,7 @@ dnf_sack_init(DnfSack *sack) DnfSackPrivate *priv = GET_PRIVATE(sack); priv->pool = pool_create(); pool_set_flag(priv->pool, POOL_FLAG_WHATPROVIDESWITHDISABLED, 1); + pool_set_flag(priv->pool, POOL_FLAG_ADDFILEPROVIDESFILTERED, 1); priv->running_kernel_id = -1; priv->running_kernel_fn = running_kernel; priv->considered_uptodate = TRUE;