Commit 03a20574 authored by Holger Levsen's avatar Holger Levsen

reproducible: drop warning about multiple versions in our repo, thats a feature

parent 01c5e474
......@@ -43,7 +43,7 @@ for PKG in $SOURCES ; do
BET=${VERSION}
fi
done
SID=$(rmadison -s sid $PKG | cut -d "|" -f2|xargs echo|sed 's# #<br />#g')
SID=$(rmadison -s sid $PKG | cut -d "|" -f2|xargs echo)
for VERSION in ${VERSIONS} ; do
if [ "${VERSION}" != "$BET" ] ; then
WARN=true
......@@ -51,18 +51,18 @@ for PKG in $SOURCES ; do
fi
done
#
# colorize output
# format output
#
CSID=""
for i in $SID ; do
if dpkg --compare-versions "$i" gt "$BET" ; then
CSID="$CSID <span class=\"orange\">$i</span>"
CSID="$CSID<span class=\"orange\">$i</span><br />"
BET=""
if [ ! -z "$BET" ] ; then
CRUFT="$BET $CRUFT"
fi
else
CSID="$CSID $I"
CSID="$CSID$i<br />"
fi
done
if [ ! -z "$BET" ] ; then
......@@ -70,17 +70,15 @@ for PKG in $SOURCES ; do
else
BET="&nbsp;"
fi
if [ ! -z "$CRUFT" ] ; then
CRUFT="$(echo $CRUFT|sed 's# #<br />#g')"
fi
#
# write output
#
write_page "<td>$BET</td>"
write_page "<td>$CSID</td>"
if $WARN ; then
echo "Warning: more than one version of $PKG available in our repo, please clean up."
write_page "<td>$(echo $CRUFT|sed 's# #<br />#g')</td>"
else
write_page "<td>&nbsp;</td>"
fi
write_page "<td>$CRUFT</td>"
write_page "</tr>"
done
write_page "</table></p>"
......
......@@ -10,4 +10,3 @@ warning /Warning: processes found which should not be there/
warning /Warning: packages found where the build was started more than 24h ago:/
warning /Warning: .+ could not be fully removed./
warning /Warning: could not download.+/
warning /Warning: more than one version of .+ available in our repo, please clean up./
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