Allow repository precedence when multiple instances of the same repository exist in /etc/apk/repositories
I have the following situation:
- Repository A is a custom compiled set of packages that also exist in the public repository. This repository has the pkgs compiled with extra security features and/or some unique flags set.
- Repository B is a full mirror of the official repository.
What i’d like to happen is list both repositories in the /etc/apk/repositories file, and have the clients prefer downloading all pkgs from Repo A. In the case that the file doesn’t exist in Repo A, then download from Repo B.
This, currently, doesn’t seem possible. After adding both repositories, clients sometimes download from A, and sometimes download from B, regardless of what is available in A.
The ability to add multiple repositories, with precedence, would be very helpful in this situation.
(from redmine: issue id 9409, created on 2018-09-11)