[packages/google-chrome] - check version based on primary.xml.gz first thus avoiding downloading rpm
arekm
arekm at pld-linux.org
Wed Nov 20 10:02:16 CET 2013
commit 2ae4947c43d81640418ce28b45d923291252691b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Nov 20 10:02:10 2013 +0100
- check version based on primary.xml.gz first thus avoiding downloading rpm
update-source.sh | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/update-source.sh b/update-source.sh
index 97111f4..58698cc 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -51,6 +51,14 @@ set -- $(sed -re "s,^.+-([^-]+)-([^-]+).$arch$,\1 \2," $t)
ver=$1
rev=$2
+# check google-chrome ver only
+oldrev=$(awk '/^%define[ ]+svnrev[ ]+/{print $NF}' $specfile)
+oldver=$(awk '/^Version:[ \t]+/{print $NF; exit}' $specfile)
+if [ "$oldrev" = "$rev" -a "$oldver" = "$ver" ]; then
+ echo "Already up to date (google-chrome/$ver-$rev)"
+ exit 0
+fi
+
# extract flash version
rpm=$name-$branch-$ver-$rev.$arch.rpm
manifest=manifest-$ver.json
@@ -63,8 +71,7 @@ flashv=$(awk -F'"' '/version/{print $4}' manifest-$ver.json)
rm -f "$t" "$manifest"
-oldrev=$(awk '/^%define[ ]+svnrev[ ]+/{print $NF}' $specfile)
-oldver=$(awk '/^Version:[ \t]+/{print $NF; exit}' $specfile)
+# check google-chrome and flash ver
oldflash=$(awk '/^%define[ ]+flashv[ ]+/{print $NF}' $specfile)
if [ "$oldrev" = "$rev" -a "$oldver" = "$ver" -a "$oldflash" = "$flashv" ]; then
echo "Already up to date (google-chrome/$ver-$rev flash/$flashv)"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/google-chrome.git/commitdiff/2ae4947c43d81640418ce28b45d923291252691b
More information about the pld-cvs-commit
mailing list