build: allow custom apk repositories maintaining the existing api#1589
build: allow custom apk repositories maintaining the existing api#1589a-gave wants to merge 1 commit intoopenwrt:mainfrom
Conversation
With opkg the fingerprints of keys for additional repositories, were calculated from the key itself. With apk use the placeholder names 'asu-client-0.pem', 'asu-client-1.pem', with key indexes, to keep the api unchanged.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1589 +/- ##
===========================================
+ Coverage 80.75% 90.94% +10.18%
===========================================
Files 15 16 +1
Lines 977 1755 +778
===========================================
+ Hits 789 1596 +807
+ Misses 188 159 -29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Oh, excellent timing! I was just looking into fixing this for apk on Saturday, you saved me the effort. (I dealt with a forum post sometime in the last couple weeks with someone trying to add extra feeds for 25.12 on their local server.) I'll give it some testing and report back... |
|
So what do your actual APK feeds look like? Do they have an apk v3 I'm curious because OpenWrt is using subtly non-standard Whereas on my Alpine laptop running apk-tools v3, they are using the directory search (and the index is a v2 APKINDEX.tar.gz). And there's Chimera, which has both v2 and v3 indexes: https://repo.chimera-linux.org/current/main/x86_64/. |
I'm using https://github.com/openwrt/gh-action-sdk to produce them. The index is the file |
|
The following is more for my own benefit, to document and explain what's needed to use "extra package feeds". In Now in order to use packages from that feed site, you add Notes: $ cat /etc/apk/repositories.d/distfeeds.list
https://downloads.openwrt.org/snapshots/packages/x86_64/video/x86_64/
$ apk update
ERROR: wget: exited with error 8
WARNING: updating and opening https://downloads.openwrt.org/snapshots/packages/x86_64/video/x86_64/APKINDEX.tar.gz: unexpected end of fileTHIS IS UNUSED BY ASU BUT MENTIONED FOR COMPLETENESS. If we use explicit v3 search, with the proper prefix in the feeds, $ cat /etc/apk/repositories.d/distfeeds.list
v3 https://downloads.openwrt.org/snapshots/packages/x86_64/video/x86_64/
$ apk update
ERROR: wget: exited with error 8
WARNING: updating and opening https://downloads.openwrt.org/snapshots/packages/x86_64/video/x86_64/Packages.adb: unexpected end of fileBut, if we eliminate the search with explicit file naming, $ cat /etc/apk/repositories.d/distfeeds.list
v3 https://downloads.openwrt.org/snapshots/packages/x86_64/video/x86_64/packages.adb
$ apk update
[https://downloads.openwrt.org/snapshots/packages/x86_64/video/x86_64/packages.adb]
OK: 335 distinct packages availableThis means that you can use either a directory in your |
|
obsolete due to #1602 |
With opkg the fingerprints of keys for additional repositories, were calculated from the key itself.
With apk use the placeholder names 'asu-client-0.pem', 'asu-client-1.pem', with key indexes, to keep the api unchanged.