commit 22605b2f083c6a28c34345268c51d593b80856df
Author: Arkadiusz MiĆkiewicz <[email protected]>
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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit