diff options
author | Paul Spooren <mail@aparcar.org> | 2024-11-06 16:32:03 +0100 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2024-11-09 16:46:35 +0100 |
commit | 451e2ce006eaba5341d7e33ac587719c3bf18701 (patch) | |
tree | 2263e40a24ab778f579d6401bd7bf60210a8e988 /target/imagebuilder | |
parent | ad1c1b7047b2e716b75031e26af544532f429f10 (diff) | |
download | openwrt-451e2ce006eaba5341d7e33ac587719c3bf18701.tar.gz openwrt-451e2ce006eaba5341d7e33ac587719c3bf18701.tar.bz2 openwrt-451e2ce006eaba5341d7e33ac587719c3bf18701.zip |
imagebuilder: fix package inclusion and APK index
We need to exclude packages from the APK index which must not be
upgraded. To do so, the packages `libc`, `kernel` and `base-files` are
excluded to APK never suggestes them as upgradable.
The previous logic would however match packages like `libcomerr0`,
causing build failures. Make the copying and excluding logic more
precise by adding a single dash.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'target/imagebuilder')
-rw-r--r-- | target/imagebuilder/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile index ff14a43bed..d455cbcd7a 100644 --- a/target/imagebuilder/Makefile +++ b/target/imagebuilder/Makefile @@ -72,9 +72,9 @@ ifeq ($(CONFIG_BUILDBOT),) ifeq ($(CONFIG_IB_STANDALONE),) $(FIND) $(call FeedPackageDir,libc) -type f \ \( \ - -name 'base-files*.$(PACKAGE_SUFFIX)' -or \ - -name 'libc*.$(PACKAGE_SUFFIX)' -or \ - -name 'kernel*.$(PACKAGE_SUFFIX)' \) \ + -name 'base-files-*.$(PACKAGE_SUFFIX)' -or \ + -name 'libc-*.$(PACKAGE_SUFFIX)' -or \ + -name 'kernel-*.$(PACKAGE_SUFFIX)' \) \ -exec $(CP) -t $(PKG_BUILD_DIR)/packages {} + else $(FIND) $(wildcard $(PACKAGE_SUBDIRS)) -type f -name '*.$(PACKAGE_SUFFIX)' \ @@ -83,9 +83,9 @@ ifeq ($(CONFIG_BUILDBOT),) else $(FIND) $(call FeedPackageDir,libc) -type f \ \( \ - -name 'base-files*.$(PACKAGE_SUFFIX)' -or \ - -name 'libc*.$(PACKAGE_SUFFIX)' -or \ - -name 'kernel*.$(PACKAGE_SUFFIX)' \) \ + -name 'base-files-*.$(PACKAGE_SUFFIX)' -or \ + -name 'libc-*.$(PACKAGE_SUFFIX)' -or \ + -name 'kernel-*.$(PACKAGE_SUFFIX)' \) \ -exec $(CP) -t $(IB_LDIR)/ {} + endif |