summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh19
1 files changed, 13 insertions, 6 deletions
diff --git a/update.sh b/update.sh
index c2dba40e..f822108f 100755
--- a/update.sh
+++ b/update.sh
@@ -28,15 +28,22 @@ else
echo "Downloading SleekXMPP"
git clone git://github.com/louiz/SleekXMPP.git
fi
-if [ -e "dnspython" ]
+if [ -e ".dnspython.tgz" ]
then
- echo "Updating dnspython"
- cd dnspython
- hg pull -u
- cd ..
+ if [ -e "dnspython" ]
+ then
+ echo "dnspython up to date"
+ else
+ echo "Restoring dnspython"
+ tar xf .dnspython.tgz
+ mv dnspython3-1.10.0 dnspython
+ fi
else
echo "Downloading dnspython"
- hg clone http://hg.louiz.org/dnspython
+ wget -c -q -O .dnspython.tgz http://www.dnspython.org/kits3/1.10.0/dnspython3-1.10.0.tar.gz
+ rm -fr dnspython
+ tar xf .dnspython.tgz
+ mv dnspython3-1.10.0 dnspython
fi
cd src