]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
stupid wget creates 0 byte file when remote gives 404
authorElan Ruusamäe <glen@delfi.ee>
Tue, 26 May 2015 08:38:13 +0000 (11:38 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 26 May 2015 08:38:13 +0000 (11:38 +0300)
get-source.sh

index 9d5af7290aec463482b43eecae4da224e21025f2..e5ef757de81b8674de5da95923c587ef2bcb03f9 100755 (executable)
@@ -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
This page took 0.096079 seconds and 4 git commands to generate.