Updated makepending for new dpkg-compareversions

This commit is contained in:
Rubén Rodríguez 2013-02-04 02:03:44 +01:00
parent ac10a85a42
commit 46167e3529

View file

@ -87,7 +87,7 @@ LIST=$(echo $LIST | cut -d" " -f2-)
while [ "$LIST" != "EOL" ]
do
TEST=$(echo $LIST | cut -d" " -f1)
dpkg --compare-versions $HI lt $TEST && HI=$TEST
dpkg --compare-versions $HI lt $TEST 2>/dev/null && HI=$TEST
LIST=$(echo $LIST | cut -d" " -f2-)
done
echo $HI
@ -101,7 +101,7 @@ current=$( higher $LIST)
LIST=$(egrep ^${package}_ $UPSTREAM)
upstream=$( higher $LIST)
if dpkg --compare-versions $current lt $upstream
if dpkg --compare-versions $current lt $upstream 2>/dev/null
then
# echo Current version in $DISTRO: $current 1>&2