[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': export is important
Holger Levsen
gitlab at salsa.debian.org
Fri May 1 02:32:59 BST 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
15cd82d0 by Holger Levsen at 2020-05-01T03:32:51+02:00
reproducible Debian rebuilder 'thing': export is important
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
=====================================
@@ -56,21 +56,21 @@ SUITE=bullseye
DISTNAME="$SUITE-$ARCH"
PACKAGES=$(ls $CHPATH/$DISTNAME/var/lib/apt/lists/*_dists_${SUITE}_main_binary-${ARCH}_Packages)
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)
+export PKG=$(grep-available . -s Package $SOURCES|sort -R | head -1 | cut -d ' ' -f2)
+export 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 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"
+ 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-)"
-PKG="$(echo $FILE | cut -d '_' -f1)"
-VERSION="$(echo $FILE | cut -d '_' -f2)"
+export PKG="$(echo $FILE | cut -d '_' -f1)"
+export VERSION="$(echo $FILE | cut -d '_' -f2)"
POOLPATH="" # declared as a global variable
set_poolpath $PKG # so we can set it here with a function
FTPMASTERPATH="$(echo $BUILTINPHOPATH | cut -d '/' -f2-4)"
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/15cd82d034f09eb0ae0ff1633764fa06603c0af1
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/15cd82d034f09eb0ae0ff1633764fa06603c0af1
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/c4c60786/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list