]> git.pld-linux.org Git - packages/google-chrome.git/commitdiff
Check version, too.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 4 Oct 2013 19:58:38 +0000 (21:58 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 4 Oct 2013 19:58:38 +0000 (21:58 +0200)
update-source.sh

index c26852a4f792c39fb3b9058952264a682bd0343a..3e3283774d44705681582b5092b336bc66e0881f 100755 (executable)
@@ -65,8 +65,9 @@ rm -f $t
 echo "$ver-$rev"
 
 oldrev=$(awk '/^%define[       ]+svnrev[       ]+/{print $NF}' $specfile)
+oldver=$(awk '/^Version:[ \t]+/{print $NF; exit}' $specfile)
 oldflash=$(awk '/^%define[     ]+flashv[       ]+/{print $NF}' $specfile)
-if [ "$oldrev" = "$rev" -a "$oldflash" = "$flashv" ]; then
+if [ "$oldrev" = "$rev" -a "$oldver" = "$ver" -a "$oldflash" = "$flashv" ]; then
        echo "Already up to date"
        exit 0
 fi
This page took 0.085607 seconds and 4 git commands to generate.