From 44e9acbe727366516d88210f03bec943c0399c88 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 28 May 2015 11:12:15 +0200 Subject: reproducible: count 'obsolete in sid' correctly, consider obsolete in experimental at all and special case strip-nondeterminism --- bin/reproducible_html_repository_comparison.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh index d4e1c907..b73a3001 100755 --- a/bin/reproducible_html_repository_comparison.sh +++ b/bin/reproducible_html_repository_comparison.sh @@ -42,6 +42,7 @@ for PKG in $SOURCES ; do BET="" OBSOLETE_IN_SID=false OBSOLETE_IN_TESTING=false + OBSOLETE_IN_EXP=false # # gather versions of a package # @@ -81,7 +82,8 @@ for PKG in $SOURCES ; do for i in $EXPERIMENTAL ; do if dpkg --compare-versions "$i" gt "$BET" ; then CEXP="$CEXP$i
" - else + OBSOLETE_IN_EXP=true + else CEXP="$CEXP$i
" fi done @@ -133,15 +135,17 @@ for PKG in $SOURCES ; do write_page "
(merged" if $OBSOLETE_IN_TESTING ; then write_page "and available in testing and unstable)" - else + elif $OBSOLETE_IN_SID ; then write_page "and available in unstable)" + elif $OBSOLETE_IN_EXP ; then + write_page "and available in experimental)" fi fi else write_page "$PKG.git" - if $OBSOLETE_IN_SID ; then + if ! $OBSOLETE_IN_TESTING && ! $OBSOLETE_IN_SID && ! $OBSOLETE_IN_EXP && [ "$PKG" != "strip-nondeterminism" ] ; then write_page "
(unused?)" - else + elif $OBSOLETE_IN_SID ; then let "MODIFIED_IN_SID+=1" fi fi -- cgit v1.2.3-54-g00ecf