mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_make_get_svn: Sort members of resulting archive by name
@ 2022-12-05 17:28 Uwe Kleine-König
  2022-12-15  7:34 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2022-12-05 17:28 UTC (permalink / raw)
  To: ptxdist

Without this option the order of the files in the created archive
depends on things like the used filesystem. To make the order (and so
the resulting md5sum) reproducible, use --sort=name.

This option is supported in GNU tar since version 1.28 from 2014, which
is available since Debian 7 (aka wheezy).

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 scripts/lib/ptxd_make_get.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh
index 2b0ad9307476..e78c417278e4 100644
--- a/scripts/lib/ptxd_make_get.sh
+++ b/scripts/lib/ptxd_make_get.sh
@@ -268,7 +268,7 @@ ptxd_make_get_svn() {
 	echo "${PROMPT}svn: last modification time '${lmtime}'" &&
 	GZIP=-n tar --exclude-vcs --show-stored-names ${tarcomp} \
 		--mtime="${lmtime}" --transform "s|^\.|${prefix}|g" \
-		--create --file "${path}" -C "${mirror}" .
+		--create --sort=name --file "${path}" -C "${mirror}" .
 	ptxd_make_serialize_put
 }
 export -f ptxd_make_get_svn

base-commit: 9fc1adb2c35e681c7eb10107481a2e5023862088
-- 
2.38.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-15  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05 17:28 [ptxdist] [PATCH] ptxd_make_get_svn: Sort members of resulting archive by name Uwe Kleine-König
2022-12-15  7:34 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox