[openwrt/openwrt] download: create immutable subversion checkout archive
LEDE Commits
lede-commits at lists.infradead.org
Thu May 18 07:18:20 PDT 2023
chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/92fec5360988bb761481ffdcb10514493f203321
commit 92fec5360988bb761481ffdcb10514493f203321
Author: Tomasz Maciej Nowak <tmn505 at gmail.com>
AuthorDate: Wed May 10 19:07:07 2023 +0200
download: create immutable subversion checkout archive
On each generation of the archive check sum will differ, because when
checking out subversion repository, current date is used for directories
creation. Force tar to assign creation date of the last revision for all
items inside archive.
Signed-off-by: Tomasz Maciej Nowak <tmn505 at gmail.com>
---
include/download.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/download.mk b/include/download.mk
index 34d31653b1..9ab0b6c08f 100644
--- a/include/download.mk
+++ b/include/download.mk
@@ -187,7 +187,7 @@ define DownloadMethod/svn
svn export --non-interactive --trust-server-cert -r$(VERSION) $(URL) $(SUBDIR) || \
svn export --non-interactive -r$(VERSION) $(URL) $(SUBDIR) ) && \
echo "Packing checkout..." && \
- export TAR_TIMESTAMP="" && \
+ export TAR_TIMESTAMP="`svn info -r$(VERSION) --show-item last-changed-date $(URL)`" && \
$(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \
mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \
rm -rf $(SUBDIR); \
More information about the lede-commits
mailing list