-
Notifications
You must be signed in to change notification settings - Fork 94
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
Implementation of autodetecting modular platform ID #243
Conversation
Note: was not yet properly tested as modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks fine, but there are few issues that I would like to see modified.
695bf88
to
ba27fd3
Compare
Functionality for now successfully tested using the original |
Static method for creating a virtual platform solvable package was added to be used for automatic module platform id detection.
Implementation of automatic module platform id detection based on the logic from the original DNF code.
Setup regex format to allow only platform ids with non-empty name and stream while containing the colon character.
Add docstrings and adjust logging levels.
ba8aecb
to
7dd1f4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Platform ID for modules is automatically detected based on the following values in given order sorted by priority:
module_platform_id
configuration option value, if it is explicitly set up.Provides
value from the latest available package in enabled repositories.Provides
value from the latest installed package on the local system.PLATFORM_ID
value fromos-release
files on the local system.The logic is implemented based on the original PR from
libdnf
component.