From f0faed2970ddb151fa8e12ef542b1b797bad4818 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibaut=20VARE=CC=80NE?= Date: Tue, 14 Nov 2023 18:58:43 +0100 Subject: [PATCH] phase2: compute checksums MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This will be necessary to get rid of 'rsync --checksum' and use sha2rsync.pl instead, as on phase1, thereby easing the load on the rsync server. This uses the same construct as "make checksum" in the main repo. Signed-off-by: Thibaut VARÈNE --- phase2/master.cfg | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phase2/master.cfg b/phase2/master.cfg index f05c60f..774f1a6 100644 --- a/phase2/master.cfg +++ b/phase2/master.cfg @@ -636,6 +636,15 @@ for arch in arches: workdir = "build/sdk", command = "./scripts/feeds list -s -f > bin/packages/%s/feeds.conf" %(arch[0]))) + factory.addStep(ShellCommand( + name = "checksums", + description = "Calculating checksums", + descriptionDone="Checksums calculated", + workdir = "build/sdk", + command = "cd bin/packages/%s; " %(arch[0]) + "find . -type f -not -name 'sha256sums' -printf \"%P\n\" | sort | xargs -r ../../../staging_dir/host/bin/mkhash -n sha256 | sed -ne 's!^\(.*\) \(.*\)$!\1 *\2!p' > sha256sums)", + haltOnFailure = True + )) + if ini.has_option("gpg", "key") or usign_key is not None: factory.addStep(MasterShellCommand( name = "signprepare", -- 2.30.2