Skip to content

Commit

Permalink
imagebuilder: fix OPKG package_whatdepends support
Browse files Browse the repository at this point in the history
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: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
robimarko authored and vincejv committed Nov 20, 2024
1 parent fe44fb2 commit 1299bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/imagebuilder/files/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1299bdb

Please sign in to comment.