summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-12 12:28:07 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-12 12:28:07 +0100
commitcca052964871ac1be459bc8bc4f92e8977f411bc (patch)
treee4e6e650aa53493f1f5983102cc0135a2f019d41 /bin
parente41e745eb585cc13b9486ab39381d3d2e7a7e8d6 (diff)
downloadjenkins.debian.net-cca052964871ac1be459bc8bc4f92e8977f411bc.tar.xz
reproducible: include 'testing'
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_repo_stats.sh21
1 files changed, 18 insertions, 3 deletions
diff --git a/bin/reproducible_html_repo_stats.sh b/bin/reproducible_html_repo_stats.sh
index a9b55744..57c8339b 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