From 0265f4163c9338afb1e054ff0fcafc78c968632b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 16 Mar 2015 14:40:32 +0100 Subject: reproducible: fix version comparison --- bin/reproducible_html_repository_comparison.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh index 9718be94..1ea91143 100755 --- a/bin/reproducible_html_repository_comparison.sh +++ b/bin/reproducible_html_repository_comparison.sh @@ -65,18 +65,6 @@ for PKG in $SOURCES ; do CSID="" CTEST="" CEXP="" - for i in $SID ; do - if dpkg --compare-versions "$i" gt "$BET" ; then - CSID="$CSID$i
" - if [ ! -z "$BET" ] ; then - CRUFT="$BET $CRUFT" - BET="" - OBSOLETE_IN_SID=true - fi - else - CSID="$CSID$i
" - fi - done if [ ! -z "$TESTING" ] ; then for i in $TESTING ; do if dpkg --compare-versions "$i" gt "$BET" ; then @@ -96,6 +84,18 @@ for PKG in $SOURCES ; do fi done fi + for i in $SID ; do + if dpkg --compare-versions "$i" gt "$BET" ; then + CSID="$CSID$i
" + if [ ! -z "$BET" ] ; then + CRUFT="$BET $CRUFT" + BET="" + OBSOLETE_IN_SID=true + fi + else + CSID="$CSID$i
" + fi + done if [ ! -z "$BET" ] ; then BET="$BET" else -- cgit v1.2.3-70-g09d2