From a4c120efaae80dc52eddc6462609dbb59bd65fe8 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 12 Mar 2015 12:52:23 +0100 Subject: reproducible: create link to changelog for all suites if applicable --- bin/reproducible_html_repo_stats.sh | 50 ++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/bin/reproducible_html_repo_stats.sh b/bin/reproducible_html_repo_stats.sh index 57c8339b..16c33d6a 100755 --- a/bin/reproducible_html_repo_stats.sh +++ b/bin/reproducible_html_repo_stats.sh @@ -23,11 +23,17 @@ write_page "

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 "

" -write_page "

" +write_page "

source packageold versions in our repo
(needed for reproducing old builds)
version in our repoversion in 'sid'version in 'testing'version in 'experimental'
" curl http://reproducible.alioth.debian.org/debian/Sources > $TMPFILE SOURCES=$(grep-dctrl -n -s Package -r -FPackage . $TMPFILE | sort -u) for PKG in $SOURCES ; do + echo "Processing $PKG..." + if [ "${PKG:0:3}" = "lib" ] ; then + PREFIX=${PKG:0:4} + else + PREFIX=${PKG:0:1} + fi VERSIONS=$(grep-dctrl -n -s version -S $PKG $TMPFILE|sort -u) CRUFT="" WARN=false @@ -58,7 +64,7 @@ for PKG in $SOURCES ; do CSID="" for i in $SID ; do if dpkg --compare-versions "$i" gt "$BET" ; then - CSID="$CSID$i
" + CSID="$CSID$i
" if [ ! -z "$BET" ] ; then CRUFT="$BET $CRUFT" BET="" @@ -68,46 +74,44 @@ for PKG in $SOURCES ; do fi done SID=$CSID - if [ ! -z "$BET" ] ; then - BET="$BET" - else - BET=" " - fi - if [ ! -z "$CRUFT" ] ; then - CRUFT="$(echo $CRUFT|sed 's# #
#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$i
" + if dpkg --compare-versions "$i" gt "$BET" ; then + CTEST="$CTEST$i
" + else + CTEST="$CTEST$i
" + fi done TESTING=$CTEST fi if [ ! -z "$EXPERIMENTAL" ] ; then CEXP="" - if [ "${PKG:0:3}" = "lib" ] ; then - PREFIX=${PKG:0:4} - else - PREFIX=${PKG:0:1} - fi for i in $EXPERIMENTAL ; do - CEXP="$CEXP$i
" + if dpkg --compare-versions "$i" gt "$BET" ; then + CEXP="$CEXP$i
" + else + CEXP="$CEXP$i
" + fi done EXPERIMENTAL=$CEXP fi + if [ ! -z "$BET" ] ; then + BET="$BET" + else + BET=" " + fi + if [ ! -z "$CRUFT" ] ; then + CRUFT="$(echo $CRUFT|sed 's# #
#g')" + fi # # write output # write_page "" write_page "" write_page "" - write_page "" write_page "" + write_page "" write_page "" write_page "" done -- cgit v1.2.3-70-g09d2
source packageold versions in our repo
(needed for reproducing old builds)
version in our repoversion in 'testing'version in 'sid'version in 'experimental'
$PKG$CRUFT$BET$SID$TESTING$SID$EXPERIMENTAL