From: Liangbin Lian Date: Wed, 8 May 2024 04:57:11 +0000 (+0800) Subject: imagebuilder: fix repeated generation of package index when signing is enabled X-Git-Tag: v25.12.0-rc1~560 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15424%2Fhead;p=thirdparty%2Fopenwrt.git imagebuilder: fix repeated generation of package index when signing is enabled `$(MAKE) package_index` will generate Packages.sig if signing is enabled, and Packages.sig is always newer than Packages.gz, cause repeated generation of package index on next build. So we should ignore Packages.sig. Signed-off-by: Liangbin Lian --- diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile index 3f919a06589..ee40612c1fd 100644 --- a/target/imagebuilder/files/Makefile +++ b/target/imagebuilder/files/Makefile @@ -194,7 +194,7 @@ ifeq ($(CONFIG_USE_APK),) if [ -d "$(PACKAGE_DIR)" ] && ( \ [ ! -f "$(PACKAGE_DIR)/Packages" ] || \ [ ! -f "$(PACKAGE_DIR)/Packages.gz" ] || \ - [ "`find $(PACKAGE_DIR) -cnewer $(PACKAGE_DIR)/Packages.gz`" ] ); then \ + [ "`find $(PACKAGE_DIR) -cnewer $(PACKAGE_DIR)/Packages.gz ! -name Packages.sig`" ] ); then \ echo "Package list missing or not up-to-date, generating it." >&2 ;\ $(MAKE) package_index; \ else \