From f8c570e45f6e01168b284593f5c2029f85b3ffc3 Mon Sep 17 00:00:00 2001 From: Jaroslav Mracek Date: Fri, 10 Mar 2017 14:07:11 +0100 Subject: [PATCH] Add file provides into pool for .rpm (RhBug:1263888) https://bugzilla.redhat.com/show_bug.cgi?id=1263888 repo_internalize_all_trigger() unfolds package metadata from repos into pool structures. Moving it inside dnf_sack_make_provides_ready() to make sure it was called before we start adding file provides. --- src/goal.c | 1 - src/sack.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goal.c b/src/goal.c index 480e738..1f197a3 100644 --- a/src/goal.c +++ b/src/goal.c @@ -240,7 +240,6 @@ solve(HyGoal goal, Queue *job, int flags, hy_solution_callback user_cb, /* apply the excludes */ sack_recompute_considered(sack); - repo_internalize_all_trigger(sack_pool(sack)); sack_make_provides_ready(sack); if (goal->trans) { transaction_free(goal->trans); diff --git a/src/sack.c b/src/sack.c index e77c5eb..999392d 100644 --- a/src/sack.c +++ b/src/sack.c @@ -1148,6 +1148,7 @@ void sack_make_provides_ready(HySack sack) { if (!sack->provides_ready) { + repo_internalize_all_trigger(sack_pool(sack)); Queue addedfileprovides; Queue addedfileprovides_inst; queue_init(&addedfileprovides);