Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo_sack: Treat all repos with solv_repo created as loaded #1435

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

jan-kolarik
Copy link
Member

@jan-kolarik jan-kolarik commented Apr 22, 2024

Fix the implementation of the is_loaded() flag, as it's used for initializing includes in the solver.

This issue arose in the 5.2.0.0 branch. Before that, the check relied on whether the solv_repo was null.

Test: rpm-software-management/ci-dnf-stack#1489.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2275530.

@jan-kolarik jan-kolarik force-pushed the jkolarik/fix-cmdline-repo-includepkgs branch from 850dbdb to 9971aca Compare April 22, 2024 13:58
@jan-kolarik
Copy link
Member Author

@j-mracek Thanks for pointing me to a different direction. I've simplifed the solution, hopefully it's better now.

…75530)

Fix the implementation of the `is_loaded()` flag, as it's used for initializing includes in the solver.

This issue arose in the 5.2.0.0 branch. Before that, the check relied on whether the `solv_repo` was null.

= changelog =
msg: repo_sack: Treat all repos with solv_repo created as loaded
type: bugfix
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2275530
@jan-kolarik jan-kolarik force-pushed the jkolarik/fix-cmdline-repo-includepkgs branch from 9971aca to 76e9292 Compare April 22, 2024 14:08
@jan-kolarik jan-kolarik changed the title repo_sack: Mark cmdline repo loaded repo_sack: Treat all repos with solv_repo created as loaded Apr 22, 2024
@jan-kolarik
Copy link
Member Author

I've modified the commit message to match the current implementation of the patch.

@j-mracek
Copy link
Contributor

LGTM. This solution also fixes the same problem for repository loaded from a test case.

@j-mracek j-mracek added this pull request to the merge queue Apr 23, 2024
Merged via the queue into main with commit 1f6b091 Apr 23, 2024
15 of 19 checks passed
@j-mracek j-mracek deleted the jkolarik/fix-cmdline-repo-includepkgs branch April 23, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants