[packages/apache-mod_pagespeed] - stop if tarball already present
draenog
draenog at pld-linux.org
Sun Jul 8 00:50:36 CEST 2012
commit a8c423339a34b7a6833e2805dac771e448101211
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sat Jul 7 13:32:51 2012 +0000
- stop if tarball already present
Changed files:
get-source.sh -> 1.6
get-source.sh | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/get-source.sh b/get-source.sh
index 4470869..8a22716 100644
--- a/get-source.sh
+++ b/get-source.sh
@@ -35,6 +35,11 @@ else
tarball=$pkg-$version.tar.bz2
fi
+if [ -f $tarball ]; then
+ echo "Tarball $tarball already exists"
+ exit 0
+fi
+
# gclient needs python 2.6
if python -c "import sys; sys.exit(sys.version[:3] > '2.6')"; then
echo >&2 "Need python >= 2.6 for gclient"
More information about the test
mailing list