summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2016-11-04 12:29:51 +0000
committerHolger Levsen <holger@layer-acht.org>2016-11-04 13:44:26 +0100
commit4125ec542f5cc9b8fb766d5814b9d959e2147004 (patch)
tree064afff309e9a91b62dd6cb5c33c39111da88189 /bin
parent03361fc4a3d594b6d791f416533ffb4f88a47b9c (diff)
downloadjenkins.debian.net-4125ec542f5cc9b8fb766d5814b9d959e2147004.tar.xz
reproducible Debian: Avoid DRY violation by using a for loop.
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index d87f6f14..f3e5badf 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -790,8 +790,10 @@ share_buildinfo() {
log_info "Done submitting .buildinfo files to submit@buildinfo.kfreebsd.eu."
# buildinfo.debian.net administred by Chris Lamb <lamby@debian.org>
- curl -s -X PUT --max-time 30 --data-binary @- "http://buildinfo.debian.net/api/submit" < ./b1/$BUILDINFO_SIGNED || log_error "Could not submit buildinfo from $NODE1 to http://buildinfo.debian.net/api/submit"
- curl -s -X PUT --max-time 30 --data-binary @- "http://buildinfo.debian.net/api/submit" < ./b2/$BUILDINFO_SIGNED || log_error "Could not submit buildinfo from $NODE2 to http://buildinfo.debian.net/api/submit"
+ for X in b1 b2
+ do
+ curl -s -X PUT --max-time 30 --data-binary @- "http://buildinfo.debian.net/api/submit" < ./${X}/$BUILDINFO_SIGNED || log_error "Could not submit buildinfo from ${X} to http://buildinfo.debian.net/api/submit"
+ done
log_info "Done submitting .buildinfo files to http://buildinfo.debian.net/api/submit."
log_info "Done submitting .buildinfo files."