Skip to content

Commit 0d3ca5b

Browse files
committed
libdnf: Explicitly enable filelists for non-SKIP_FILELISTS flows
As of libdnf 0.73.0 (commit f1ffeed5a75e902adf356c6cdfd926d6653b00ce), filelists metadata is disabled by default to optimize package resolution performance. However, this breaks file dependency resolution when packages specify file paths (e.g., /usr/share/makedumpfile) as dependencies. The previous code only explicitly disabled filelists when the SKIP_FILELISTS flag was set, relying on the old default of filelists being enabled. With the new libdnf default, we need to explicitly enable filelists when NOT skipping them. Assisted-by: Claude Code (Sonnet 4.5) Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 6ae105b commit 0d3ca5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libpriv/rpmostree-core.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,9 +971,13 @@ rpmostree_context_download_metadata (RpmOstreeContext *self, DnfContextSetupSack
971971

972972
/* https://github.com/rpm-software-management/libdnf/pull/416
973973
* https://github.com/projectatomic/rpm-ostree/issues/1127
974+
* As of libdnf 0.73.0 (commit f1ffeed5), filelists are disabled by default.
975+
* We need to explicitly enable them when not skipping.
974976
*/
975977
if (flags & DNF_CONTEXT_SETUP_SACK_FLAG_SKIP_FILELISTS)
976978
dnf_context_set_enable_filelists (self->dnfctx, FALSE);
979+
else
980+
dnf_context_set_enable_filelists (self->dnfctx, TRUE);
977981

978982
g_autoptr (GPtrArray) rpmmd_repos
979983
= rpmostree_get_enabled_rpmmd_repos (self->dnfctx, DNF_REPO_ENABLED_PACKAGES);

0 commit comments

Comments
 (0)