[packages/chromium-browser/dev-40: 3/5] use alt url if official missing
glen
glen at pld-linux.org
Wed Jan 14 15:56:33 CET 2015
commit 39b183627d7f664169c7e6381109364e42d9289b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jan 11 19:04:02 2015 +0200
use alt url if official missing
get-source.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/get-source.sh b/get-source.sh
index f42044b..d506ad0 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -11,6 +11,7 @@ WORK_DIR=$(cd "$(dirname "$0")"; pwd)
LOCKFILE=$WORK_DIR/$PACKAGE_NAME-$CHANNEL.lock
# Browse URL: http://gsdview.appspot.com/chromium-browser-official/
OFFICIAL_URL=http://commondatastorage.googleapis.com/chromium-browser-official
+ALT_URL=https://github.com/zcbenz/chromium-source-tarball/releases/download
DIST_DIR=$HOME/public_html/chromium-browser/src/$CHANNEL
# skip package build if interactive
@@ -46,7 +47,9 @@ set -x
(
cd "$TMP_DIR"
srctarball=$PACKAGE_NAME-$VERSION.tar.xz
- wget -c -nv -O $srctarball "$OFFICIAL_URL/chromium-$VERSION.tar.xz"
+ wget -nc -nv -O $srctarball "$OFFICIAL_URL/chromium-$VERSION.tar.xz" || :
+ wget -nc -nv -O $srctarball "$ALT_URL/$VERSION/chromium-$VERSION.tar.xz" || :
+ test -f $srctarball
# repackage cleaned up tarball
test -d $PACKAGE_NAME-$VERSION || {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/29d835c3f7fb466f7c5575655aada7f8166054bc
More information about the pld-cvs-commit
mailing list