[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': query dak if builtin-pho db has no data

Holger Levsen gitlab at salsa.debian.org
Fri May 8 13:33:21 BST 2020



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


Commits:
37a824e0 by Holger Levsen at 2020-05-08T14:32:30+02:00
reproducible Debian rebuilder 'thing': query dak if builtin-pho db has no data

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
=====================================
@@ -97,6 +97,16 @@ if [ -z "$BUILTINPHOPATH" ] ; then
 		cat $OTHER_FILES
 	else
 		echo "Warning: no .buildinfo exists for $PKG ($VERSION) and (arch_amd64 or arch_all)."
+		echo
+		psql -A -t -c "SELECT path FROM builds WHERE source='$PKG'" buildinfo > $OTHER_FILES
+		if [ -s $OTHER_FILES ] ; then
+			echo ".buildinfo files known for $PKG:"
+			echo
+			cat $OTHER_FILES
+		else
+			echo  "Warning: found no .buildinfo files for $PKG in builtin-pho db at all, let's query dak."
+			rmadison -S -a $ARCH,all,source -s $SUITE,sid $PKG
+		fi
 	fi
 	rm -f $OTHER_FILES
 	output_echo "Warning: NBIFA - no .buildinfo file available. Exiting cleanly as this is out-of-scope."



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/37a824e008b9a06b9417b81093c2118d12c57467
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/20200508/a1011a88/attachment.html>


More information about the Qa-jenkins-scm mailing list