Skip to content

Commit

Permalink
build: create package index.json
Browse files Browse the repository at this point in the history
Duplicate the old opkg index.json using the new apk database.
Needed to get the ASU server working on new snapshots.

Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: openwrt#16931
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
  • Loading branch information
efahl authored and Ansuel committed Nov 12, 2024
1 parent a72c8c7 commit f841870
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ ifneq ($(CONFIG_USE_APK),)
--sign $(BUILD_KEY_APK_SEC) \
--output packages.adb \
$$(ls *.apk | grep -v 'base-files-\|kernel-\|libc-'); \
echo -n '{"architecture": "$(ARCH_PACKAGES)", "packages":{' > index.json; \
$(STAGING_DIR_HOST)/bin/apk adbdump packages.adb | \
awk '/- name: / {pkg = $$NF} ; / version: / {printf "\"%s\": \"%s\", ", pkg, $$NF}' | \
sed 's/, $$//' >> index.json; \
echo '}}' >> index.json; \
done
else
@for d in $(PACKAGE_SUBDIRS); do ( \
Expand Down

0 comments on commit f841870

Please sign in to comment.