Commit ba251943 authored by Holger Levsen's avatar Holger Levsen

reproducible: also compare to 'testing'

parent 05c71707
...@@ -38,7 +38,8 @@ for PKG in $SOURCES ; do ...@@ -38,7 +38,8 @@ for PKG in $SOURCES ; do
VERSIONS=$(grep-dctrl -n -s version -S $PKG $TMPFILE|sort -u) VERSIONS=$(grep-dctrl -n -s version -S $PKG $TMPFILE|sort -u)
CRUFT="" CRUFT=""
BET="" BET=""
OBSOLETE=false OBSOLETE_IN_SID=false
OBSOLETE_IN_TESTING=false
# #
# gather versions of a package # gather versions of a package
# #
...@@ -70,7 +71,7 @@ for PKG in $SOURCES ; do ...@@ -70,7 +71,7 @@ for PKG in $SOURCES ; do
if [ ! -z "$BET" ] ; then if [ ! -z "$BET" ] ; then
CRUFT="$BET $CRUFT" CRUFT="$BET $CRUFT"
BET="" BET=""
OBSOLETE=true OBSOLETE_IN_SID=true
fi fi
else else
CSID="$CSID$i<br />" CSID="$CSID$i<br />"
...@@ -80,6 +81,7 @@ for PKG in $SOURCES ; do ...@@ -80,6 +81,7 @@ for PKG in $SOURCES ; do
for i in $TESTING ; do for i in $TESTING ; do
if dpkg --compare-versions "$i" gt "$BET" ; then if dpkg --compare-versions "$i" gt "$BET" ; then
CTEST="$CTEST<span class=\"green\">$i</span><br />" CTEST="$CTEST<span class=\"green\">$i</span><br />"
OBSOLETE_IN_TESTING=true
else else
CTEST="$CTEST$i<br />" CTEST="$CTEST$i<br />"
fi fi
...@@ -115,16 +117,21 @@ for PKG in $SOURCES ; do ...@@ -115,16 +117,21 @@ for PKG in $SOURCES ; do
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\" target=\"_blank\">$PKG</a><br /><span class=\"purple\">non-standard branch</span>" write_page "<a href=\"$URL\" target=\"_blank\">$PKG</a><br /><span class=\"purple\">non-standard branch</span>"
if $OBSOLETE ; then if $OBSOLETE_IN_SID ; then
write_page " (probably ok)" write_page " (probably ok)"
fi fi
else else
write_page "<a href=\"$URL\" target=\"_blank\">$PKG</a>" write_page "<a href=\"$URL\" target=\"_blank\">$PKG</a>"
write_page "<br />(<span class=\"green\">merged</span> and at least available in unstable)" write_page "<br />(<span class=\"green\">merged</span>"
if $OBSOLETE_IN_TESTING ; then
write_page "and available in testing and unstable)"
else
write_page "and available in unstable)"
fi
fi fi
else else
write_page "<a href=\"$URL\" target=\"_blank\">$PKG</a>" write_page "<a href=\"$URL\" target=\"_blank\">$PKG</a>"
if $OBSOLETE ; then if $OBSOLETE_IN_SID ; then
write_page "<br />(unused?)" write_page "<br />(unused?)"
fi fi
fi fi
......
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