]> git.pld-linux.org Git - packages/google-chrome.git/commitdiff
- allow updating other branches
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 2 Jul 2012 20:18:32 +0000 (20:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    update-source.sh -> 1.4

update-source.sh

index ee5de45f1bd7a19429d68ab1ed7173f0b452849c..d983e4f650ae079f16839e7c91e32e9da2a0f1e5 100644 (file)
@@ -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)
 
This page took 0.076433 seconds and 4 git commands to generate.