From b199226b52917da2abc5753ce6a01407632f58bf Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 20 Feb 2017 17:17:13 +0100 Subject: reproducible Debian: improve debugging buildinfo.debian.net Signed-off-by: Holger Levsen --- bin/reproducible_build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 3378e454..a55796ea 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -847,9 +847,16 @@ share_buildinfo() { log_info "Done submitting .buildinfo files to submit@buildinfo.kfreebsd.eu." # buildinfo.debian.net administred by Chris Lamb + local TMPFILE=$(mktemp --tmpdir=$TMPDIR) for X in b1 b2 do - curl -s -X PUT --max-time 30 --data-binary @- "https://buildinfo.debian.net/api/submit" < ./${X}/$BUILDINFO_SIGNED || log_error "Could not submit buildinfo from ${X} to http://buildinfo.debian.net/api/submit" + log_info "Submitting $(du -h ${X}/$BUILDINFO_SIGNED)" + curl -s -X PUT --max-time 30 --data-binary @- "https://buildinfo.debian.net/api/submit" < ./${X}/$BUILDINFO_SIGNED > $TMPFILE || log_error "Could not submit buildinfo from ${X} to http://buildinfo.debian.net/api/submit" + cat $TMPFILE + if grep -q "500 Internal Server Error" $TMPFILE ; then + irc_message debian-reproducible "error code 500 on buildinfo.debian.net" + fi + rm $TMPFILE done log_info "Done submitting .buildinfo files to http://buildinfo.debian.net/api/submit." -- cgit v1.2.3-70-g09d2