[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: include binary packages in the comparison

Holger Levsen holger at moszumanska.debian.org
Sun Aug 2 13:00:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit c20f2004c32d25f4f6de54f552d06a4c58d6d96b
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Aug 2 14:58:58 2015 +0200

    reproducible: include binary packages in the comparison
---
 bin/reproducible_html_repository_comparison.sh | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh
index 1c19da1..eabb454 100755
--- a/bin/reproducible_html_repository_comparison.sh
+++ b/bin/reproducible_html_repository_comparison.sh
@@ -13,10 +13,7 @@ common_init "$@"
 VIEW=repositories
 PAGE=index_${VIEW}.html
 SOURCES=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
-declare -a PACKAGES
-for ARCH in $ARCHES ; do
-	PACKAGES[$ARCH]=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
-done
+PACKAGES=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
 TMPFILE=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
 
 MODIFIED_IN_SID=0
@@ -31,6 +28,7 @@ write_page "</pre></p>"
 write_page "<p><table><tr><th>package</th><th>git repo</th><th>PTS link</th><th>usertagged bug</th><th>old versions in our repo<br />(needed for reproducing old builds)</th><th>version in our repo</th><th>version in 'testing'</th><th>version in 'unstable'</th><th>version in 'experimental'</th></tr>"
 
 curl http://reproducible.alioth.debian.org/debian/Sources > $SOURCES
+curl http://reproducible.alioth.debian.org/debian/Packages > $PACKAGES
 SOURCEPKGS=$(grep-dctrl -n -s Package -r -FPackage . $SOURCES | sort -u)
 for PKG in $SOURCEPKGS ; do
 	echo "Processing $PKG..."
@@ -106,8 +104,14 @@ for PKG in $SOURCEPKGS ; do
 		fi
 	done
 	if [ ! -z "$BET" ] ; then
+		BINARIES=""
+		for ARCH in $ARCHS ; do
+			i="$ARCH: $(grep-dctrl -n -s Package -r -FPackage $PKG --and -FVersion $BET --and -FArchitecture all --or -FArchitecture $ARCH Packages|xargs -r echo)"
+			BINARIES="$BINARIES$i<br />"
+		done
 		BET="<span class=\"green\">$BET</span>"
 	else
+		BINARIES=""
 		BET=" "
 	fi
 	if [ ! -z "$CRUFT" ] ; then
@@ -177,7 +181,7 @@ for PKG in $SOURCEPKGS ; do
 	 done
 	write_page " <td><a href=\"$URL\">bugs</a></td>"
 	write_page " <td>$CRUFT</td>"
-	write_page " <td>$BET</td>"
+	write_page " <td>$BET $BINARIES</td>"
 	write_page " <td>$CTEST</td>"
 	write_page " <td>$CSID</td>"
 	write_page " <td>$CEXP</td>"
@@ -190,8 +194,5 @@ echo "$MODIFIED_IN_SID" > /srv/reproducible-results/modified_in_sid.txt
 echo "$MODIFIED_IN_EXP" > /srv/reproducible-results/modified_in_exp.txt
 
 # cleanup
-rm $SOURCES $TMPFILE
-for ARCH in $ARCHES ; do
-	rm ${PACKAGES[$ARCH]}
-done
+rm $SOURCES $PACKAGES $TMPFILE
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list