]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Fix download of files with special characters.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 19 Mar 2010 18:38:39 +0000 (19:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 19 Mar 2010 18:38:39 +0000 (19:38 +0100)
naoki/backend.py

index b5339b80e9f39d53c1cf495d9826e8d9ea05a981..f0342a67761d122ca793ff0f0961532714de68c5 100644 (file)
@@ -109,7 +109,7 @@ def download(files, logger=None):
                if os.path.exists(filepath):
                        continue
 
-               url = config["sources_download_url"] + "/%s" % urllib.pathname2url(file)
+               url = config["sources_download_url"] + "/" + file
 
                if logger:
                        logger.debug("Retrieving %s" % url)
@@ -117,6 +117,7 @@ def download(files, logger=None):
                g = urlgrabber.grabber.URLGrabber(
                        user_agent = "%sSourceGrabber/%s" % (config["distro_name"], config["distro_version"],),
                        progress_obj = urlgrabber.progress.TextMeter(),
+                       quote=0,
                )
 
                try: