]> git.pld-linux.org Git - packages/google-chrome.git/commitdiff
-k for keep cache
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 25 Sep 2013 17:51:05 +0000 (19:51 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 25 Sep 2013 17:51:05 +0000 (19:51 +0200)
update-source.sh

index 3788c0231fc52d5e21e4d247e02936dbab6b13a3..c26852a4f792c39fb3b9058952264a682bd0343a 100755 (executable)
@@ -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
This page took 0.074998 seconds and 4 git commands to generate.