[packages/google-chrome] -k for keep cache
arekm
arekm at pld-linux.org
Wed Sep 25 19:51:07 CEST 2013
commit 22605b2f083c6a28c34345268c51d593b80856df
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Sep 25 19:51:05 2013 +0200
-k for keep cache
update-source.sh | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/update-source.sh b/update-source.sh
index 3788c02..c26852a 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -1,4 +1,12 @@
#!/bin/sh
+
+if [ "$1" = "-k" ]; then
+ cache=yes
+ shift
+else
+ cache=no
+fi
+
# product name
product=chrome
# name
@@ -31,6 +39,7 @@ t=$(mktemp)
#poldek -q --skip-installed --st=metadata --source "$sourceurl/" --cmd "ls google-chrome-$branch" > $t
repodata=primary-$branch-$(date +%Y%m%d).xml
+[ "$cache" = "yes" ] || rm -f "$repodata"
test -e $repodata || {
wget -c $sourceurl/repodata/primary.xml.gz
gzip -dc primary.xml.gz > $repodata || test -s $repodata
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/google-chrome.git/commitdiff/22605b2f083c6a28c34345268c51d593b80856df
More information about the pld-cvs-commit
mailing list