Skip to content

apk: fix CacheOnly=always and CacheOnly=metadata#4270

Open
craftyguy wants to merge 3 commits intosystemd:mainfrom
craftyguy:apk-caching-fixes
Open

apk: fix CacheOnly=always and CacheOnly=metadata#4270
craftyguy wants to merge 3 commits intosystemd:mainfrom
craftyguy:apk-caching-fixes

Conversation

@craftyguy
Copy link
Copy Markdown
Contributor

No description provided.

Previously --cache-max-age was unconditionally applied in install()
and scripts(), suppressing metadata refresh even with CacheOnly=never.
This updates it to respect the CacheOnly config option instead.
Without this, apk downloads uncached packages from upstream even when
the user explicitly requested offline operation (e.g. with
CacheOnly=always).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants