From b7b7d6b3aadde8cf769fec948f5598f66998e100 Mon Sep 17 00:00:00 2001
From: mathieui <mathieui@mathieui.net>
Date: Tue, 24 Jul 2012 18:10:46 +0200
Subject: Remove the need for hg and the dnspython fork

(upstream works, now)
---
 doc/en/install.txt | 25 ++++++++++++-------------
 update.sh          | 19 +++++++++++++------
 2 files changed, 25 insertions(+), 19 deletions(-)

diff --git a/doc/en/install.txt b/doc/en/install.txt
index 4338afef..49232abd 100644
--- a/doc/en/install.txt
+++ b/doc/en/install.txt
@@ -32,17 +32,14 @@ In order for poezio to correctly work, you need the libs SleekXMPP and
  dnspython. You can install them by downloading it from the
  https://github.com/fritzy/SleekXMPP/[SleekXMPP] page and the
  http://www.dnspython.org/[dnspython] page , but you'll need the development
- versions. Alternatively, you can download poezio's sources including SleekXMPP
- and dnspython, that's the easier way.
-
-As for dnspython, you will have to use our python3 fork, or poke them to accept
- patches.
+ version of SleekXMPP. Alternatively, you can download poezio's sources
+ including SleekXMPP and dnspython, that's the easier way.
 
 === Dependencies ===
 
 
-If you want to install SleekXMPP and dnspython yourself, follow these
- instructions. Else, go to the next section.
+If you want to install SleekXMPP and dnspython by yourself, follow these
+ instructions. Else, go to the next section (recommended).
 
 
 Download SleekXMPP
@@ -64,12 +61,13 @@ python3 setup.py build
 su -c "python3 setup.py install"
 ============================
 
-Clone the repository at http://hg.louiz.org/dnspython (this is a fork, because
- upstream is unresponsive and didn’t fix an important bug).
+Install the dnspython3 package on your distribution or install it manually:
 ============================
-hg clone http://hg.louiz.org/dnspython
+wget -O dnspython.tgz http://www.dnspython.org/kits3/1.10.0/dnspython3-1.10.0.tar.gz
+
+tar xvf dnspython.tgz
 
-cd dnspython
+cd dnspython3-1.10.0
 ============================
 
 And do the same again:
@@ -88,11 +86,12 @@ If you skipped the installation of the dependencies and you only want to test
 sh update.sh
 ============================
 
-If you have git and hg installed, it will download and update locally the
+If you have git installed, it will download and update locally the
  libraries for you.
 
 
-If you don't want to install poezio but just test it, do:
+If you don't want to install poezio but just test it (or keep a development
+ version), do:
 ============================
  ./launch.sh
 ============================
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
-- 
cgit v1.2.3