[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': export is important, part2

Holger Levsen gitlab at salsa.debian.org
Fri May 1 02:43:32 BST 2020



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


Commits:
6a04311c by Holger Levsen at 2020-05-01T03:43:23+02:00
reproducible Debian rebuilder 'thing': export is important, part2

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
=====================================
@@ -61,14 +61,14 @@ export VERSION=$(grep-available -S $PKG -s Version $SOURCES | head -1 | cut -d '
 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 OR arch_all=true LIMIT 1" buildinfo)
+export 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 ".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
 	exit 1
 fi
-FILE="$(echo $BUILTINPHOPATH | cut -d '/' -f5-)"
+export FILE="$(echo $BUILTINPHOPATH | cut -d '/' -f5-)"
 export PKG="$(echo $FILE | cut -d '_' -f1)"
 export VERSION="$(echo $FILE | cut -d '_' -f2)"
 POOLPATH=""            # declared as a global variable



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/6a04311c84c5883248c53cc81780a36a38a08458
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/20200501/40748c11/attachment.html>


More information about the Qa-jenkins-scm mailing list