From 03a20574216f8f15faf42ac6fb71404216b91326 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 25 Feb 2015 11:37:45 +0100 Subject: reproducible: drop warning about multiple versions in our repo, thats a feature --- bin/reproducible_html_repo_stats.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_repo_stats.sh b/bin/reproducible_html_repo_stats.sh index de867692..a4c654b3 100755 --- a/bin/reproducible_html_repo_stats.sh +++ b/bin/reproducible_html_repo_stats.sh @@ -43,7 +43,7 @@ for PKG in $SOURCES ; do BET=${VERSION} fi done - SID=$(rmadison -s sid $PKG | cut -d "|" -f2|xargs echo|sed 's# #
#g') + SID=$(rmadison -s sid $PKG | cut -d "|" -f2|xargs echo) for VERSION in ${VERSIONS} ; do if [ "${VERSION}" != "$BET" ] ; then WARN=true @@ -51,18 +51,18 @@ for PKG in $SOURCES ; do fi done # - # colorize output + # format output # CSID="" for i in $SID ; do if dpkg --compare-versions "$i" gt "$BET" ; then - CSID="$CSID $i" + CSID="$CSID$i
" BET="" if [ ! -z "$BET" ] ; then CRUFT="$BET $CRUFT" fi else - CSID="$CSID $I" + CSID="$CSID$i
" fi done if [ ! -z "$BET" ] ; then @@ -70,17 +70,15 @@ for PKG in $SOURCES ; do else BET=" " fi + if [ ! -z "$CRUFT" ] ; then + CRUFT="$(echo $CRUFT|sed 's# #
#g')" + fi # # write output # write_page "$BET" write_page "$CSID" - if $WARN ; then - echo "Warning: more than one version of $PKG available in our repo, please clean up." - write_page "$(echo $CRUFT|sed 's# #
#g')" - else - write_page " " - fi + write_page "$CRUFT" write_page "" done write_page "

" -- cgit v1.2.3-70-g09d2