solver: Use load_repos instead of update_and_load_enabled_repos

The old function has been deprecated by dnf5, use load_repos directly
and only load the available repos (the ones osbuild has setup), not the
system repos.

Fixes #2080
This commit is contained in:
Brian C. Lane 2025-04-23 11:31:03 -07:00 committed by Brian C. Lane
parent 68830eabe4
commit d3dc07886c

View file

@ -163,7 +163,7 @@ class DNF5(SolverBase):
)
repo_iter.next()
self.base.get_repo_sack().update_and_load_enabled_repos(load_system=False)
self.base.get_repo_sack().load_repos(dnf5.repo.Repo.Type_AVAILABLE)
except RuntimeError as e:
raise RepoError(e) from e