Commit f5fdd593 authored by Holger Levsen's avatar Holger Levsen

reproducible: fixup branch+obsolete detection

parent 4ff295de
...@@ -129,9 +129,10 @@ for PKG in $SOURCES ; do ...@@ -129,9 +129,10 @@ for PKG in $SOURCES ; do
URL="http://anonscm.debian.org/cgit/reproducible/$PKG.git/?h=merged/reproducible_builds" URL="http://anonscm.debian.org/cgit/reproducible/$PKG.git/?h=merged/reproducible_builds"
curl $URL > $TMP2FILE curl $URL > $TMP2FILE
if [ "$(grep "'error'>Invalid branch" $TMP2FILE 2>/dev/null)" ] ; then if [ "$(grep "'error'>Invalid branch" $TMP2FILE 2>/dev/null)" ] ; then
write_page "<a href=\"$URL\">$PKG.git</a><br /><span class=\"purple\">non-standard branch</span>" if ! $OBSOLETE_IN_SID ; then
if $OBSOLETE_IN_SID ; then write_page "<a href=\"$URL\">$PKG.git</a><br /><span class=\"purple\">non-standard branch</span>"
write_page " (probably ok)" else
write_page "<a href=\"$URL\">$PKG.git</a><br /><span class=\"green\">non-standard branch</span> (but that is ok, our package aint't used in unstable)"
fi fi
else else
write_page "<a href=\"$URL\">$PKG.git</a>" write_page "<a href=\"$URL\">$PKG.git</a>"
...@@ -146,12 +147,23 @@ for PKG in $SOURCES ; do ...@@ -146,12 +147,23 @@ for PKG in $SOURCES ; do
fi fi
else else
write_page "<a href=\"$URL\">$PKG.git</a>" write_page "<a href=\"$URL\">$PKG.git</a>"
if ! $OBSOLETE_IN_TESTING && ! $OBSOLETE_IN_SID && ! $OBSOLETE_IN_EXP && [ "$PKG" != "strip-nondeterminism" ] ; then if [ "$PKG" != "strip-nondeterminism" ] ; then
write_page "<br />(unused?)" if $OBSOLETE_IN_TESTING && $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then
elif ! $OBSOLETE_IN_SID ; then write_page "<br />(unused?"
let "MODIFIED_IN_SID+=1" write_page "<br /><span class=\"purple\">Then the branch should probably renamed.</span>"
elif $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then
write_page "<br />(only used in testing, fixed in sid,"
write_page "<br /><span class=\"purple\">branch should probably renamed</span>)"
elif $OBSOLETE_IN_EXP ; then
write_page "<br />(only used in testing and unstable, fixed in experimental)"
fi
elif [ "$PKG" = "strip-nondeterminism" ] && $OBSOLETE_IN_SID ; then
write_page "<br />(this repo is always used)"
fi fi
fi fi
if ! $OBSOLETE_IN_SID ; then
let "MODIFIED_IN_SID+=1"
fi
write_page " </td>" write_page " </td>"
write_page " <td><a href=\"https://tracker.debian.org/pkg/$PKG\">PTS</a></td>" write_page " <td><a href=\"https://tracker.debian.org/pkg/$PKG\">PTS</a></td>"
URL="https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=$PKG&users=reproducible-builds@lists.alioth.debian.org&archive=both" URL="https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=$PKG&users=reproducible-builds@lists.alioth.debian.org&archive=both"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment