[packages/google-chrome] Check version, too.

arekm arekm at pld-linux.org
Fri Oct 4 21:58:41 CEST 2013


commit cce6ef8d6e3949b1f83217564b4d963fd0e79dca
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Oct 4 21:58:38 2013 +0200

    Check version, too.

 update-source.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/update-source.sh b/update-source.sh
index c26852a..3e32837 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/google-chrome.git/commitdiff/cce6ef8d6e3949b1f83217564b4d963fd0e79dca



More information about the pld-cvs-commit mailing list