diff --git a/package/Makefile b/package/Makefile index 3c6621b81c3..ca43eb7e016 100644 --- a/package/Makefile +++ b/package/Makefile @@ -131,7 +131,7 @@ ifneq ($(CONFIG_USE_APK),) --keys-dir $(TOPDIR) \ --sign $(BUILD_KEY_APK_SEC) \ --output packages.adb \ - $$(ls *.apk | grep -v 'base-files-\|kernel-\|libc-'); \ + $$(ls *.apk | grep -vE '^(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}' | \