[packages/chromium-browser] stupid wget creates 0 byte file when remote gives 404
glen
glen at pld-linux.org
Wed May 27 20:43:53 CEST 2015
commit 6a7e9d1999da8dc4caebb46767701045f5b24cd3
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue May 26 11:38:13 2015 +0300
stupid wget creates 0 byte file when remote gives 404
get-source.sh | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/get-source.sh b/get-source.sh
index 9d5af72..e5ef757 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -47,8 +47,13 @@ set -x
(
cd "$TMP_DIR"
srctarball=$PACKAGE_NAME-$VERSION.tar.xz
+
wget -nc -nv -O $srctarball "$OFFICIAL_URL/chromium-$VERSION.tar.xz" || :
+ test -s $srctarball || rm $srctarball
+
wget -nc -nv -O $srctarball "$ALT_URL/$VERSION/chromium-$VERSION.tar.xz" || :
+ test -s $srctarball || rm $srctarball
+
test -f $srctarball
# repackage cleaned up tarball
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/80615441fa3d9beb56392f5a166698b6cd1a4a36
More information about the pld-cvs-commit
mailing list