[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': add more information if no .buildinfo file can be found

Holger Levsen gitlab at salsa.debian.org
Sat May 2 14:04:09 BST 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
ba2e9efd by Holger Levsen at 2020-05-02T15:03:56+02:00
reproducible Debian rebuilder 'thing': add more information if no .buildinfo file can be found

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_debian_rebuilder_prototype.sh


Changes:

=====================================
bin/reproducible_debian_rebuilder_prototype.sh
=====================================
@@ -68,9 +68,16 @@ output_echo "let's try to rebuild $BINARY_PKG from src:$PKG ($VERSION) from $SUI
 # query .buildinfo file path (for that $PKG and $VERSION from bullseye...) from builtin-pho db
 BUILTINPHOPATH=$(psql -A -t -c "SELECT path FROM builds WHERE source='$PKG' AND source_version='$VERSION' AND ( arch_amd64=true OR arch_all=true ) LIMIT 1" buildinfo)
 if [ -z "$BUILTINPHOPATH" ] ; then
-	output_echo "No .buildinfo file found for $PKG ($VERSION) for $ARCH"
+	output_echo "No .buildinfo file found for $PKG ($VERSION) for $ARCH - check https://tracker.debian.org/$PKG"
+	OTHER_FILES=$(mktemp)
+	psql -A -t -c "SELECT path FROM builds WHERE source='$PKG' AND (arch_amd64=true OR arch_all=true)" buildinfo > $OTHER_FILES
+	if [ -s $OTHER_FILES ] ; then
 	output_echo ".buildinfo files known for $PKG and (arch_amd64 or arch_all)"
-	psql -A -t -c "SELECT path FROM builds WHERE source='$PKG' AND (arch_amd64=true OR arch_all=true)" buildinfo
+		cat $OTHER_FILES
+	else
+		output_echo "Warning: no .buildinfo exists for $PKG and (arch_amd64 or arch_all)."
+	fi
+	rm -f $OTHER_FILES
 	exit 1
 fi
 output_echo "Found $BUILTINPHOPATH"



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ba2e9efd5816b29bcb3cb1595a19de0b7221c107

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ba2e9efd5816b29bcb3cb1595a19de0b7221c107
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200502/8f6292ac/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list