backportpackage: Unquote URLs we get back from LP

This commit is contained in:
Evan Broder 2010-12-15 11:00:02 -08:00
parent ee157d1cd9
commit 899139ba99

View File

@ -21,6 +21,7 @@ import shutil
import subprocess import subprocess
import sys import sys
import tempfile import tempfile
import urllib
from debian.deb822 import Dsc from debian.deb822 import Dsc
import launchpadlib.launchpad import launchpadlib.launchpad
@ -143,7 +144,7 @@ def fetch_package(workdir, package, opts):
check_call(['dget', check_call(['dget',
'--download-only', '--download-only',
'--allow-unauthenticated', '--allow-unauthenticated',
f], urllib.unquote(f)],
cwd=workdir) cwd=workdir)
return os.path.join(workdir, os.path.basename(f)) return os.path.join(workdir, os.path.basename(f))
else: else: