pull-lp-source: Unquote URI to get "+" instead of "%2B" in the file name

(LP: #681114).
This commit is contained in:
Benjamin Drung 2010-12-14 18:22:51 +01:00
parent 6e214de3b3
commit 4e7c58085e
2 changed files with 8 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,10 +1,15 @@
ubuntu-dev-tools (0.108) UNRELEASED; urgency=low
[ Stefano Rivera ]
* lp-shell, import-bug-from-debian:
Use the 'production' LP instance instead of 'edge' (which is going away).
* pbuilder-dist: Fix typo in local archive support, introduced in 0.107.
-- Stefano Rivera <stefanor@ubuntu.com> Sat, 11 Dec 2010 12:33:37 +0200
[ Benjamin Drung ]
* pull-lp-source: Unquote URI to get "+" instead of "%2B" in the file name
(LP: #681114).
-- Benjamin Drung <bdrung@ubuntu.com> Tue, 14 Dec 2010 18:21:37 +0100
ubuntu-dev-tools (0.107) experimental; urgency=low

View File

@ -28,6 +28,7 @@
import os
import sys
import subprocess
import urllib
from optparse import OptionParser
# ubuntu-dev-tools modules.
@ -78,7 +79,7 @@ if __name__ == '__main__':
# All good - start downloading...
print 'Fetching the source for %s from %s (%s)...' % (
package, release.capitalize(), pocket)
if subprocess.call(['/usr/bin/dget', '-xu', dsc_url[0]]) == 0:
if subprocess.call(['/usr/bin/dget', '-xu', urllib.unquote(dsc_url[0])]) == 0:
print 'Success!'
else:
print 'Failed to fetch and extrace the source.', \