autodist-upstream-updates: only accept even numbers (also 1.x and 2.x) as stable from Gnome upstream list
This commit is contained in:
parent
491357aebb
commit
9ab37c25c2
@ -234,8 +234,8 @@ parse_gnome() {
|
||||
if [ "$pkg" -a "$ver" ]; then
|
||||
ver1=$(echo $ver | cut -d. -f1)
|
||||
ver2=$(echo $ver | cut -d. -f2)
|
||||
if [ $ver1 -ge 2 -a $ver1 -le 4 -a "$ver2" -a $(($ver2 % 2)) -ne 0 ]; then
|
||||
# skip unstable 2.x and 3.x versions with odd numbers
|
||||
if [ "$ver2" -a $(($ver2 % 2)) -ne 0 ]; then
|
||||
# skip unstable versions with odd numbers
|
||||
continue
|
||||
else
|
||||
echo "$pkg $ver $SOURCEURL ${alias/* /}" >> $tmpfile
|
||||
|
Loading…
Reference in New Issue
Block a user