-
Notifications
You must be signed in to change notification settings - Fork 141
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
Caching local plugin repo data prevents use of locally stored packages when used in back to back updates #519
Comments
Thank you very much for the report. I am not sure about several details of your use case or I am not sure whether plugin was intended for your use case. May I ask you for a reproducer? If the problem is related to using outdated cache after step one, I would recommend to use |
I've tested scenario with --refresh and it worked according to your expectations. |
There is an alternative workaround. Use I am closing the issue because the reported use case (using local plugin to generate cache for multiple systems) is not supported by the plugin. |
Thanks for looking into it. I made a code change to read metadata_expire form local's .conf file and sets it without the need of command line options, if there's interest I craft a PR. The usage model I was describing is the same as the one documented in Fedora Magazine which got me to this plugin in the first place. |
I believe that the default for the local repository is incorrect, therefore setting |
Fixes rpm-software-management#519 Signed-off-by: Robert Evans <[email protected]>
Also make this option configurable Fixes rpm-software-management#519 Signed-off-by: Robert Evans <[email protected]>
Pardon the convoluted title.
Expected behavior:
Actual behavior:
The fact that the local plugin relies on cached repo data and therefore ignoring just downloaded updates seems to defeat the purpose of the local plugin if used to update multiple hosts at or around the same time.
If the cache is allowed to expire, is explicitly ignored with dnf command line options, or if the cached data is explicitly deleted before subsequent updates (e.g., rm -fr /var/cache/dnf/_dnf_local*) then the local plugin behaves as expected.
The text was updated successfully, but these errors were encountered: