-
Notifications
You must be signed in to change notification settings - Fork 24k
apt - update the sources first if the cache can't be opened with default_release #81743
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
base: devel
Are you sure you want to change the base?
apt - update the sources first if the cache can't be opened with default_release #81743
Conversation
except SystemError as e: | ||
module.fail_json(msg=to_native(e)) |
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.
If we don't want to add the complexity, this could be simplified by removing the rest of the patch and adding a note to the documentation that the default_release
is configured before updating the cache.
If someone's hitting this, they're either adding a repository without apt_repository
and not updating the cache, or going out of their way to disable update_cache with apt_repository
.
… default_release configured
2c78e90
to
c7b3965
Compare
SUMMARY
Fixes #28991
Not sure how to test for this easily. At minimum we should handle the SystemError and indicate the user needs to update the cache from a previous operation.
here's a reproducer
without the patch, results in
ISSUE TYPE