Fix quoting for bug 109739
authorAlec Warner <antarus@gentoo.org>
Thu, 1 Jun 2006 01:40:30 +0000 (01:40 -0000)
committerAlec Warner <antarus@gentoo.org>
Thu, 1 Jun 2006 01:40:30 +0000 (01:40 -0000)
svn path=/main/trunk/; revision=3443

pym/getbinpkg.py

index 197d777bf1a775112e4205ffb04be4546ecaf0fb..0bd0d36226a0c58f7d22645c0c0e8fa5add09b7d 100644 (file)
@@ -5,7 +5,7 @@
 
 
 from output import *
-import htmllib,HTMLParser,string,formatter,sys,os,xpak,time,tempfile,base64
+import htmllib,HTMLParser,string,formatter,sys,os,xpak,time,tempfile,base64,urllib2
 
 try:
        import cPickle
@@ -69,7 +69,7 @@ class ParseLinks(HTMLParser.HTMLParser):
                        for x in attrs:
                                if x[0] == 'href':
                                        if x[1] not in self.PL_anchors:
-                                               self.PL_anchors.append(x[1])
+                                               self.PL_anchors.append(urllib2.unquote(x[1]))
 
 
 def create_conn(baseurl,conn=None):