-
Notifications
You must be signed in to change notification settings - Fork 419
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
Add the possibility to load filelists conditionally #2012
Conversation
Although according to packaging guidelines there should not be file dependencies out of '/etc', '/usr/bin/', and '/usr/sbin' (see https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_and_directory_dependencies), there still are such packages in F39:
What's the plan for these packages which will become uninstallable? Should we at least file a bug on them to fix their dependencies? |
Yeah I guess this is a good topic for discussion for our next team meeting. The problem that was already mentioned in the change proposal discussion is that the rule is of SHOULD NOT matter, which means that having such dependencies might be acceptable with a valid excuse. Therefore, we should be aware that there could always be some of these packages present. It would be great to at least provide users with a hint in case of failures without filelists. However, I'm not certain if this is currently feasible without making changes to the solver. |
@m-blaha I forgot to mention that there is already an existing bug tracking these issues, and there are submissions for individual packages. |
Oh great, I didn't know about it. In that case consider my comment irrelevant :) |
A helper function used to detect if any spec is a filename pattern.
938d3bf
to
f1520c7
Compare
c9e98a2
to
44c8de1
Compare
Add the filelists metadata load flag based on the optional_metadata_types option.
44c8de1
to
2ca7603
Compare
LGTM - the last simplification was really great idea. There is a related comment - rpm-software-management/libdnf#1635 (comment) This PR cannot be merged without modification of |
f640227
to
51f4f4a
Compare
Request loading filelists metadata if the command needs it or its argument specs contain a file pattern.
51f4f4a
to
e9b3954
Compare
LGTM, CI passed locally. |
optional_metadata_types
configuration option from libdnffilelists
metadata by individual commandsOverall, the behavior introduced here is taken from the existing implemention in DNF5 (see this PR).
Currently, the changes should not introduce any new behavior by default. The introduction of dropping the filelists loading by default should come after the system-wide change proposal is accepted.
Requires changes from: rpm-software-management/libdnf#1635.
Related:
Targetted for: https://issues.redhat.com/browse/RHEL-12355.