-
Notifications
You must be signed in to change notification settings - Fork 353
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
DNF5 prototype #5857
base: master
Are you sure you want to change the base?
DNF5 prototype #5857
Commits on Sep 24, 2024
-
Use DNF5 in the Anaconda system installer for the package installation.
Configuration menu - View commit details
-
Copy full SHA for cc78fb1 - Browse repository at this point
Copy the full SHA cc78fb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e301b3b - Browse repository at this point
Copy the full SHA e301b3bView commit details -
Change the DNFConfigWrapper to contain all necessary option getters a…
…nd setters The option getters were renamed in dnf5 in commit: rpm-software-management/dnf5/commit/740fd279d283156b8e9c3525a16142f2fffda291 So, with the previous approach, the names would have to be changed to `get_<name>_option` format, which would be wrong when they are used as atributes.
Configuration menu - View commit details
-
Copy full SHA for 0a30964 - Browse repository at this point
Copy the full SHA 0a30964View commit details -
Configuration menu - View commit details
-
Copy full SHA for 114b34c - Browse repository at this point
Copy the full SHA 114b34cView commit details -
Configuration menu - View commit details
-
Copy full SHA for de5137f - Browse repository at this point
Copy the full SHA de5137fView commit details -
Configuration menu - View commit details
-
Copy full SHA for adc1881 - Browse repository at this point
Copy the full SHA adc1881View commit details -
TEMPORARY: Load all repositories at once
The dnf5 methods `Repo::fetch_metadata` and `Repo::load` were both removed from API. See: rpm-software-management/dnf5/commit/cc2ae250c30bdbd8fadb99a4eb9d817b074dc6b2 rpm-software-management/dnf5/commit/b2ece236b62d121c4e2ddd91272804db17ee7d12 Instead use `RepoSack::load_repos` to load all repositories. This method must be called only once.
Configuration menu - View commit details
-
Copy full SHA for 58a60bd - Browse repository at this point
Copy the full SHA 58a60bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31ac66e - Browse repository at this point
Copy the full SHA 31ac66eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ab5f91 - Browse repository at this point
Copy the full SHA 5ab5f91View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7f82fc - Browse repository at this point
Copy the full SHA b7f82fcView commit details -
Remove test for reset_substitution method
The method was removed by commit: 0ff5e44
Configuration menu - View commit details
-
Copy full SHA for 2de984e - Browse repository at this point
Copy the full SHA 2de984eView commit details -
Remove variable loading, since it's done in base.setup()
The test is adjusted because the base.setup() was already called. This might need to change if the place of calling base.setup() changes.
Configuration menu - View commit details
-
Copy full SHA for b164de0 - Browse repository at this point
Copy the full SHA b164de0View commit details -
Replace
base.load_config_from_file
withbase.load_config
methodThe method was removed by commit: rpm-software-management/dnf5@bfb6f32
Configuration menu - View commit details
-
Copy full SHA for fde596e - Browse repository at this point
Copy the full SHA fde596eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65fb4df - Browse repository at this point
Copy the full SHA 65fb4dfView commit details -
TEMPORARY: Disable testing messages from resolving package selections
There was a change regarding creation of the `ValidationReport`. It's no longer created in `CheckPackagesSelectionTask._resolve_selection()` but in `DNFManager.resolve_selection()`. The change lookgs good and it was probably even necessary because of changes in dnf reports from the transaction resolving, but it prevents testing the report messages, because the report is now also mocked. Since it's not a critical problem, I am disabling the message checks for now. The changes that caused the issue: poncovka@faccc47#diff-08489d103d5780dd5279cb390820b5eeb83963642783cd82773cef081803b1b7L620-L641 poncovka@faccc47#diff-57dffd56427be4eca900ee75e0a130414fb51527d206b00116ef9501f0784127L96-L114
Configuration menu - View commit details
-
Copy full SHA for b3b9df1 - Browse repository at this point
Copy the full SHA b3b9df1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 810162d - Browse repository at this point
Copy the full SHA 810162dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 523e7d1 - Browse repository at this point
Copy the full SHA 523e7d1View commit details -
TEMPORARY: Store comps queries
The comps objects are owned by the queries, so when a query is destroyed, so are the contained objects. There is a bug for dnf: rpm-software-management/dnf5#1530 This is a temporary workaround.
Configuration menu - View commit details
-
Copy full SHA for 2b873e4 - Browse repository at this point
Copy the full SHA 2b873e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1931a1 - Browse repository at this point
Copy the full SHA a1931a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dcfb90 - Browse repository at this point
Copy the full SHA 2dcfb90View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5e1424 - Browse repository at this point
Copy the full SHA c5e1424View commit details -
Configuration menu - View commit details
-
Copy full SHA for e48e21e - Browse repository at this point
Copy the full SHA e48e21eView commit details -
Adapt test_module_payload_dnf_installation for dnf5
The ValidationReport is now created within the mocked DNFManager.resolve_selection, so it must be mocked as well. Also, there are no longer exceptions raised from the DNF transaction, instead, the problems are stored in a report, so there are no exceptions to mock.
Configuration menu - View commit details
-
Copy full SHA for 223bba0 - Browse repository at this point
Copy the full SHA 223bba0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dd5620 - Browse repository at this point
Copy the full SHA 8dd5620View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2112036 - Browse repository at this point
Copy the full SHA 2112036View commit details -
Configuration menu - View commit details
-
Copy full SHA for da8a3e9 - Browse repository at this point
Copy the full SHA da8a3e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4adf1dd - Browse repository at this point
Copy the full SHA 4adf1ddView commit details -
The base is no longer being closed and the resetting of base is tested in test_module_payload_dnf5_manager.DNFManagerTestCase.test_reset_base.
Configuration menu - View commit details
-
Copy full SHA for 5b224cf - Browse repository at this point
Copy the full SHA 5b224cfView commit details -
Enable some tests in test_module_payload_dnf5_manager
These tests probably didn't work at the time they were marked as skipped, but are working now.
Configuration menu - View commit details
-
Copy full SHA for 8374596 - Browse repository at this point
Copy the full SHA 8374596View commit details -
Fix DownloadProgress callbacks
Type 'void *' is expected as return from `add_new_download` and as `user_data` and `used_cb_data` arguments, so it cannot be easily used in Python. This is a workaround that fixes a segmentation fault, but a better solution is still needed.
Configuration menu - View commit details
-
Copy full SHA for a8195a9 - Browse repository at this point
Copy the full SHA a8195a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ed2da3 - Browse repository at this point
Copy the full SHA 0ed2da3View commit details -
Report error when the dnf transaction fails
The transaction can fail even if it doesn't contain any transaction items with an error status.
Configuration menu - View commit details
-
Copy full SHA for 26e2c02 - Browse repository at this point
Copy the full SHA 26e2c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80ce03f - Browse repository at this point
Copy the full SHA 80ce03fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25778ec - Browse repository at this point
Copy the full SHA 25778ecView commit details -
The transaction callbacks take libdnf5::base::TransactionPackage, not libdnf5::transaction::Package.
Configuration menu - View commit details
-
Copy full SHA for 8cb2c3c - Browse repository at this point
Copy the full SHA 8cb2c3cView commit details -
TEMPORARY: Do not call libdnf5.rpm.to_full_nevra_string
It's not on the API, see issue: rpm-software-management/dnf5#1644
Configuration menu - View commit details
-
Copy full SHA for 946ab77 - Browse repository at this point
Copy the full SHA 946ab77View commit details -
Don't close the multiprocessing queue too soon
The transaction_stop is actually for RPMCALLBACK_TRANS_STOP from rpm, which is only the end of preparation phase. The after_complete is called by dnf after the whole transaction completes. Also, the queue cannot be closed at this point, because transaction errors are written there after the transaction completes and then TransactionProgress.quit is called, which closes the queue as well.
Configuration menu - View commit details
-
Copy full SHA for 90ca8a4 - Browse repository at this point
Copy the full SHA 90ca8a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54457f7 - Browse repository at this point
Copy the full SHA 54457f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fca17eb - Browse repository at this point
Copy the full SHA fca17ebView commit details