base-files: move apk distfeeds into directory

Analog to how we handle distfeeds with opkg, have the base feeds defined
in a file in repositories.d instead of the base /etc/apk/repositories.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16940
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Jonas Gorski 2024-11-13 14:25:26 +01:00 committed by Christian Marangi
parent 8f6972df36
commit e031dab93e
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
1 changed files with 3 additions and 3 deletions

View File

@ -250,9 +250,9 @@ endif
rm -f $(1)/etc/banner.failsafe,) rm -f $(1)/etc/banner.failsafe,)
ifneq ($(CONFIG_USE_APK),) ifneq ($(CONFIG_USE_APK),)
mkdir -p $(1)/etc/apk/ mkdir -p $(1)/etc/apk/repositories.d
$(call FeedSourcesAppendAPK,$(1)/etc/apk/repositories) $(call FeedSourcesAppendAPK,$(1)/etc/apk/repositories.d/distfeeds.list)
$(VERSION_SED_SCRIPT) $(1)/etc/apk/repositories $(VERSION_SED_SCRIPT) $(1)/etc/apk/repositories.d/distfeeds.list
rm -f $(1)/etc/uci-defaults/13_fix-group-user rm -f $(1)/etc/uci-defaults/13_fix-group-user
rm -f $(1)/sbin/pkg_check rm -f $(1)/sbin/pkg_check