diff options
| author | Liangbin Lian | 2024-05-08 04:57:11 +0000 |
|---|---|---|
| committer | Liangbin Lian | 2025-11-12 13:23:33 +0000 |
| commit | 26ddab47d90c9b0982de1e926c9cb7444d1089a7 (patch) | |
| tree | 7d4d5349e5c4ec9c44f2a169b5d28fbe360434bd | |
| parent | 00e881451a980a7e65d94e7f91029baa479dd8eb (diff) | |
| download | openwrt-26ddab47d90c9b0982de1e926c9cb7444d1089a7.tar.gz | |
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 <jjm2473@gmail.com>
| -rw-r--r-- | target/imagebuilder/files/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile index 3f919a0658..ee40612c1f 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 \ |