From c1285c09cf60222731165023454dbf88e1aac9f1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 2 Feb 2013 14:05:36 +0100 Subject: [PATCH] autodist-upstream-updates: skip unstable updates --- autodist-upstream-updates | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autodist-upstream-updates b/autodist-upstream-updates index 8a0a43b..2d0201d 100755 --- a/autodist-upstream-updates +++ b/autodist-upstream-updates @@ -186,7 +186,8 @@ while read line; do alias=`grep "^$pkg" $ALIASES_DB` [ "$alias" ] || alias=`grep "^lib$pkg " $ALIASES_DB` [ "$alias" ] && pkg=$alias - line=`grep -i " $pkg[^-_A-Za-z0-9]" $buildstmp || grep -i " lib$pkg[^-_A-Za-z0-9]" $buildstmp` + line=`grep -i "^$pkg:" $buildstmp || grep -i "^lib$pkg:" $buildstmp` + # grep -i " $pkg[^-_A-Za-z0-9]" $buildstmp if [ "$line" ]; then pkg=${line/:*} [ "$pkg" -a "$ver" ] && echo "$pkg $ver ${alias/* /}" >> $tmpfile @@ -250,6 +251,12 @@ rm -f $tmpfile > $UPDATES_DB unset lastpkg while read pkg ver alias; do + # skip updates to unstable versions + unset found_beta + for b in alpha beta rc "~"; do + [ "${ver/$b}" != "${ver}" ] && found_beta=1 + done + [ "$found_beta" ] && continue if [ "$pkg" = "$lastpkg" ]; then # echo "Warning: duplicate found: $pkg lastver: $lastver ver: $ver" >&2 version_find_bigger $lastver $ver