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

Retain installonlypkg install status on upgrade #514

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

sameluch
Copy link
Contributor

@sameluch sameluch commented Feb 6, 2025

Fixes #512

By iterating through the ppszInstallOnlyPkgs during TDNFMarkAutoInstalled we can ensure that their install status is retained during upgrades (and installs that would pull in a new version of an installonlypkg). Since this only impacts packages configured in the installonlypkgs list in tdnf.conf, the impact is fairly low, and in most cases the list is very small, not requiring too many packages to check through.

Additionally, I added a couple tests for the scenario.

@oliverkurth
Copy link
Contributor

Thank you, I will take a look. One thing - can you fix these errors:

[100%] Built target check
../pytests/tests/test_multiinstall.py:153:1: E302 expected 2 blank lines, found 1
../pytests/tests/test_multiinstall.py:172:1: E302 expected 2 blank lines, found 1
ERROR: flake8 tests failed

I know, it's very pedantic...

@sameluch sameluch force-pushed the sammeluch/fix-user-install-installonly branch from f155e9e to fbbaffa Compare February 6, 2025 17:24
@sameluch
Copy link
Contributor Author

sameluch commented Feb 6, 2025

Thank you, I will take a look. One thing - can you fix these errors:

[100%] Built target check
../pytests/tests/test_multiinstall.py:153:1: E302 expected 2 blank lines, found 1
../pytests/tests/test_multiinstall.py:172:1: E302 expected 2 blank lines, found 1
ERROR: flake8 tests failed

I know, it's very pedantic...

No worries, resolved the errors.

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.

Installonlypkgs are removed by tdnf autoremove following tdnf upgrade
2 participants