]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
Unquote urls before trying to look them up in index files.
authorCameron Dale <camrdale@gmail.com>
Mon, 14 Apr 2008 02:46:56 +0000 (19:46 -0700)
committerCameron Dale <camrdale@gmail.com>
Mon, 14 Apr 2008 02:46:56 +0000 (19:46 -0700)
apt_p2p/apt_p2p.py

index 7a5f9fa604af37439abb6dedc4a0ea481d9240bd..1f04a87da3b97feb1d9e03a0b0ebaf516a16f67b 100644 (file)
@@ -11,6 +11,7 @@
 
 from binascii import b2a_hex
 from urlparse import urlunparse
+from urllib import unquote
 import os, re, sha
 
 from twisted.internet import defer, reactor
@@ -193,7 +194,7 @@ class AptP2P:
         d = defer.Deferred()
         
         log.msg('Trying to find hash for %s' % url)
-        findDefer = self.mirrors.findHash(url)
+        findDefer = self.mirrors.findHash(unquote(url))
         
         findDefer.addCallbacks(self.findHash_done, self.findHash_error, 
                                callbackArgs=(req, url, d), errbackArgs=(req, url, d))