summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2024-11-19 23:56:19 +0100
committerRobert Marko <robimarko@gmail.com>2024-11-20 09:49:21 +0100
commit52519a59a859d349f154ed79e0a3d63457b6aa6a (patch)
treec9f5dd00ca5e257af90ad59173f4b654b4ef18b3
parent03eeeffbd62bbba201445e0b79bd3360c896a4c8 (diff)
downloadopenwrt-master.tar.gz
openwrt-master.tar.bz2
openwrt-master.zip
imagebuilder: fix OPKG package_whatdepends supportHEADmastermain
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG will currently fail as OPKG does not support "list --depends" call at all, it seems that this is a mixup from the original APK support commit. So, lets restore 'package_whatdepends' support for OPKG by calling "whatdepends -A" instead as we used to before APK support. Fixes: d788ab376f85 ("build: add APK package build capabilities") Link: https://github.com/openwrt/openwrt/pull/17022 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--target/imagebuilder/files/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile
index 125cc798fc..07cca7eea4 100644
--- a/target/imagebuilder/files/Makefile
+++ b/target/imagebuilder/files/Makefile
@@ -349,7 +349,7 @@ ifeq ($(PACKAGE),)
endif
@$(MAKE) -s package_reload
ifeq ($(CONFIG_USE_APK),)
- @$(OPKG) list --depends $(PACKAGE)
+ @$(OPKG) whatdepends -A $(PACKAGE)
else
@$(APK) list --depends $(PACKAGE)
endif