mirror of
https://github.com/openwrt/openwrt.git
synced 2025-12-21 17:04:28 +04:00
build: fix ipkg-remove: add support for removing apk files
Use apk adbdump to extract metadata from .apk files to derive the real package name. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -20,7 +20,7 @@ opkg_package_files = $(wildcard \
|
||||
|
||||
apk_package_files = $(wildcard \
|
||||
$(foreach dir,$(PACKAGE_SUBDIRS), \
|
||||
$(foreach pkg,$(1), $(dir)/$(pkg)_*.apk)))
|
||||
$(foreach pkg,$(1), $(dir)/$(pkg)-*.apk)))
|
||||
|
||||
# 1: package name
|
||||
define FeedPackageDir
|
||||
|
||||
@@ -15,7 +15,7 @@ endef
|
||||
# Generates a make statement to return a wildcard for candidate ipkg files
|
||||
# 1: package name
|
||||
define gen_package_wildcard
|
||||
$(1)$$(if $$(filter -%,$$(ABIV_$(1))),,[^a-z-])*
|
||||
$(1)$$(if $$(filter -%,$$(ABIV_$(1))),,[^a-z$(if $(CONFIG_USE_APK),,-)])*
|
||||
endef
|
||||
|
||||
# 1: package name
|
||||
|
||||
Reference in New Issue
Block a user