packages: google-chrome/update-source.sh - allow updating other branches
glen
glen at pld-linux.org
Mon Jul 2 22:18:37 CEST 2012
Author: glen Date: Mon Jul 2 20:18:37 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- allow updating other branches
---- Files affected:
packages/google-chrome:
update-source.sh (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/google-chrome/update-source.sh
diff -u packages/google-chrome/update-source.sh:1.3 packages/google-chrome/update-source.sh:1.4
--- packages/google-chrome/update-source.sh:1.3 Fri Apr 8 08:38:36 2011
+++ packages/google-chrome/update-source.sh Mon Jul 2 22:18:32 2012
@@ -1,13 +1,14 @@
#!/bin/sh
arch=x86_64
-sourceurl=http://dl.google.com/linux/chrome/rpm/stable/$arch/
+branch=${1:-stable}
+sourceurl=http://dl.google.com/linux/chrome/rpm/$branch/$arch/
set -e
echo -n "Fetching latest version... "
t=$(mktemp)
poldek -q --st=metadata --source "$sourceurl" --update
-poldek -q --skip-installed --st=metadata --source "$sourceurl" --cmd 'ls google-chrome-stable' > $t
+poldek -q --skip-installed --st=metadata --source "$sourceurl" --cmd "ls google-chrome-$branch" > $t
set -- $(sed -re "s,^.+-([^-]+)-([^-]+).$arch$,\1 \2," $t)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/google-chrome/update-source.sh?r1=1.3&r2=1.4
More information about the pld-cvs-commit
mailing list