[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: include 'testing'

Holger Levsen holger at moszumanska.debian.org
Thu Mar 12 11:54:25 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 cca052964871ac1be459bc8bc4f92e8977f411bc
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Mar 12 12:28:07 2015 +0100

    reproducible: include 'testing'
---
 bin/reproducible_html_repo_stats.sh | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_html_repo_stats.sh b/bin/reproducible_html_repo_stats.sh
index a9b5574..57c8339 100755
--- a/bin/reproducible_html_repo_stats.sh
+++ b/bin/reproducible_html_repo_stats.sh
@@ -23,7 +23,7 @@ write_page "<p>These source packages are different from sid in our apt repositor
 write_page "deb http://reproducible.alioth.debian.org/debian/ ./"
 write_page "deb-src http://reproducible.alioth.debian.org/debian/ ./"
 write_page "</pre></p>"
-write_page "<p><table><tr><th>source package</th><th>version in our repo</th><th>version in sid</th><th>old versions in our repo<br />(needed for reproducing old builds)</th><th>version in experimental</th></tr>"
+write_page "<p><table><tr><th>source package</th><th>old versions in our repo<br />(needed for reproducing old builds)</th><th>version in our repo</th><th>version in 'sid'</th><th>version in 'testing'</th><th>version in 'experimental'</th></tr>"
 
 curl http://reproducible.alioth.debian.org/debian/Sources > $TMPFILE
 SOURCES=$(grep-dctrl -n -s Package -r -FPackage . $TMPFILE | sort -u)
@@ -50,6 +50,7 @@ for PKG in $SOURCES ; do
 			CRUFT="$CRUFT ${VERSION}"
 		fi
 	done
+	TESTING=$(rmadison -s testing $PKG | cut -d "|" -f2|xargs echo)
 	EXPERIMENTAL=$(rmadison -s experimental $PKG | cut -d "|" -f2|xargs echo)
 	#
 	# format output
@@ -66,6 +67,7 @@ for PKG in $SOURCES ; do
 			CSID="$CSID$i<br />"
 		fi
 	done
+	SID=$CSID
 	if [ ! -z "$BET" ] ; then
 		BET="<span class=\"purple\">$BET</span>"
 	else
@@ -74,6 +76,18 @@ for PKG in $SOURCES ; do
 	if [ ! -z "$CRUFT" ] ; then
 		CRUFT="$(echo $CRUFT|sed 's# #<br />#g')"
 	fi
+	if [ ! -z "$TESTING" ] ; then
+		CTEST=""
+		if [ "${PKG:0:3}" = "lib" ] ; then
+			PREFIX=${PKG:0:4}
+		else
+			PREFIX=${PKG:0:1}
+		fi
+		for i in $TESTING ; do
+			CTEST="$CTEST<a href=\"https://tracker.debian.org/media/packages/$PREFIX/$PKG/changelog-$i\">$i</a><br />"
+		done
+		TESTING=$CTEST
+	fi
 	if [ ! -z "$EXPERIMENTAL" ] ; then
 		CEXP=""
 		if [ "${PKG:0:3}" = "lib" ] ; then
@@ -90,9 +104,10 @@ for PKG in $SOURCES ; do
 	# write output
 	#
 	write_page "<tr><td>$PKG</td>"
-	write_page "<td>$BET</td>"
-	write_page "<td>$CSID</td>"
 	write_page "<td>$CRUFT</td>"
+	write_page "<td>$BET</td>"
+	write_page "<td>$SID</td>"
+	write_page "<td>$TESTING</td>"
 	write_page "<td>$EXPERIMENTAL</td>"
 	write_page "</tr>"
 done

-- 
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