[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': find the right source package to rebuild

Holger Levsen gitlab at salsa.debian.org
Sat May 2 09:50:15 BST 2020



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


Commits:
80636eac by Holger Levsen at 2020-05-02T10:50:05+02:00
reproducible Debian rebuilder 'thing': find the right source package to rebuild

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
=====================================
@@ -57,8 +57,9 @@ 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 $PACKAGES | sort -R | head -1 | cut -d ' ' -f2)
-VERSION=$(grep-available -S $PKG -s Version $SOURCES | head -1 | cut -d ' ' -f2)
+BINARY_PKG=$(grep-available . -s Package $PACKAGES | sort -R | head -1 | cut -d ' ' -f2)
+PKG=$( ( grep-available -X -S $BINARY_PKG -s Package $SOURCES || grep-available -X -P $BINARY_PKG -s Source $PACKAGES ) | cut -d ' ' -f2)
+VERSION=$(grep-available -X -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



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/80636eacc880fc3360a1e2342e18cd5f1dc3a29e
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/7318e5e7/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list