From 1bfae21f4b1b0e84904d5f220e375f5c12c64577 Mon Sep 17 00:00:00 2001 From: Cameron Dale Date: Sun, 13 Apr 2008 19:46:56 -0700 Subject: [PATCH] Unquote urls before trying to look them up in index files. --- apt_p2p/apt_p2p.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apt_p2p/apt_p2p.py b/apt_p2p/apt_p2p.py index 7a5f9fa..1f04a87 100644 --- a/apt_p2p/apt_p2p.py +++ b/apt_p2p/apt_p2p.py @@ -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)) -- 2.39.5