[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': improve output if .buildinfo file cannot be found
Holger Levsen
gitlab at salsa.debian.org
Fri May 1 00:52:03 BST 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
b0b94bb9 by Holger Levsen at 2020-05-01T01:51:56+02:00
reproducible Debian rebuilder 'thing': improve output if .buildinfo file cannot 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
=====================================
@@ -59,9 +59,14 @@ PACKAGES=$(ls $CHPATH/$DISTNAME/var/lib/apt/lists/*_dists_${SUITE}_main_binary-$
SOURCES=$(ls $CHPATH/$DISTNAME/var/lib/apt/lists/*_dists_${SUITE}_main_source_Sources)
PKG=$(grep-available . -s Package $SOURCES|sort -R | head -1 | cut -d ' ' -f2)
VERSION=$(grep-available -S $PKG -s Version $SOURCES | head -1 | cut -d ' ' -f2)
+output_echo "let's try to rebuild $PKG ($VERSION) from $SUITE/$ARCH"
# query a random .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 ORDER BY RANDOM() LIMIT 1" buildinfo)
+if [ -z "$BUILTINPHOPATH" ] ; then
+ output_echo "No .buildinfo file found for $PKG ($VERSION) for $ARCH"
+ exit 1
+fi
FILE="$(echo $BUILTINPHOPATH | cut -d '/' -f5-)"
PKG="$(echo $FILE | cut -d '_' -f1)"
VERSION="$(echo $FILE | cut -d '_' -f2)"
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/b0b94bb963df03da9ae08e96e2594d31d00985a7
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/b0b94bb963df03da9ae08e96e2594d31d00985a7
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/20200430/fc539652/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list