imagebuilder: fix OPKG package_whatdepends support

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: d788ab376f ("build: add APK package build capabilities")
Link: https://github.com/openwrt/openwrt/pull/17022
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Robert Marko 2024-11-19 23:56:19 +01:00
parent 03eeeffbd6
commit 52519a59a8
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ ifeq ($(PACKAGE),)
endif endif
@$(MAKE) -s package_reload @$(MAKE) -s package_reload
ifeq ($(CONFIG_USE_APK),) ifeq ($(CONFIG_USE_APK),)
@$(OPKG) list --depends $(PACKAGE) @$(OPKG) whatdepends -A $(PACKAGE)
else else
@$(APK) list --depends $(PACKAGE) @$(APK) list --depends $(PACKAGE)
endif endif