[packages/google-chrome] primary.gz contains garbage at the end. ignore if resulting file was not 0 byte

glen glen at pld-linux.org
Thu Sep 19 00:33:09 CEST 2013


commit 4187e1175d943876ca4e7c1c17eb7a724d21b3fc
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 19 01:33:05 2013 +0300

    primary.gz contains garbage at the end. ignore if resulting file was not 0 byte

 update-source.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/update-source.sh b/update-source.sh
index 6a6e75f..7a35927 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -33,7 +33,7 @@ t=$(mktemp)
 repodata=primary-$branch-$(date +%Y%m%d).xml
 test -e $repodata || {
 	wget -c $sourceurl/repodata/primary.xml.gz
-	gzip -dc primary.xml.gz > $repodata
+	gzip -dc primary.xml.gz > $repodata || test -s $repodata
 }
 perl -ne 'm{<name>google-'$product-$branch'</name>} and m{<version epoch="0" ver="([\d.]+)" rel="(\d+)"/>} and print "$1 $2"' > $t < $repodata
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/google-chrome.git/commitdiff/4187e1175d943876ca4e7c1c17eb7a724d21b3fc



More information about the pld-cvs-commit mailing list