From f5fdd5939e1a6021605ed5e97579e3a7a9372e46 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 28 May 2015 13:03:57 +0200 Subject: reproducible: fixup branch+obsolete detection --- bin/reproducible_html_repository_comparison.sh | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'bin/reproducible_html_repository_comparison.sh') diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh index 3f6c4a2d..bed2b5f9 100755 --- a/bin/reproducible_html_repository_comparison.sh +++ b/bin/reproducible_html_repository_comparison.sh @@ -129,9 +129,10 @@ for PKG in $SOURCES ; do URL="http://anonscm.debian.org/cgit/reproducible/$PKG.git/?h=merged/reproducible_builds" curl $URL > $TMP2FILE if [ "$(grep "'error'>Invalid branch" $TMP2FILE 2>/dev/null)" ] ; then - write_page "$PKG.git
non-standard branch" - if $OBSOLETE_IN_SID ; then - write_page " (probably ok)" + if ! $OBSOLETE_IN_SID ; then + write_page "$PKG.git
non-standard branch" + else + write_page "$PKG.git
non-standard branch (but that is ok, our package aint't used in unstable)" fi else write_page "$PKG.git" @@ -146,12 +147,23 @@ for PKG in $SOURCES ; do fi else write_page "$PKG.git" - if ! $OBSOLETE_IN_TESTING && ! $OBSOLETE_IN_SID && ! $OBSOLETE_IN_EXP && [ "$PKG" != "strip-nondeterminism" ] ; then - write_page "
(unused?)" - elif ! $OBSOLETE_IN_SID ; then - let "MODIFIED_IN_SID+=1" + if [ "$PKG" != "strip-nondeterminism" ] ; then + if $OBSOLETE_IN_TESTING && $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then + write_page "
(unused?" + write_page "
Then the branch should probably renamed." + elif $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then + write_page "
(only used in testing, fixed in sid," + write_page "
branch should probably renamed)" + elif $OBSOLETE_IN_EXP ; then + write_page "
(only used in testing and unstable, fixed in experimental)" + fi + elif [ "$PKG" = "strip-nondeterminism" ] && $OBSOLETE_IN_SID ; then + write_page "
(this repo is always used)" fi fi + if ! $OBSOLETE_IN_SID ; then + let "MODIFIED_IN_SID+=1" + fi write_page " " write_page " PTS" URL="https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=$PKG&users=reproducible-builds@lists.alioth.debian.org&archive=both" -- cgit v1.2.3-54-g00ecf