syncpackage: Don't add quotation marks to changelog entries (LP: #668805).

This commit is contained in:
Benjamin Drung 2010-10-30 19:58:08 +02:00
parent fffcab6392
commit b403dedbfb
2 changed files with 11 additions and 6 deletions

6
debian/changelog vendored
View File

@ -30,9 +30,11 @@ ubuntu-dev-tools (0.105) UNRELEASED; urgency=low
Debian chroot, working around #599695 Debian chroot, working around #599695
[ Benjamin Drung ] [ Benjamin Drung ]
* syncpackage: Don't crash if environment variables aren't set (LP: #665202). * syncpackage:
- Don't crash if environment variables aren't set (LP: #665202).
- Don't add quotation marks to changelog entries (LP: #668805).
-- Benjamin Drung <skipper@deep-thought> Sat, 30 Oct 2010 19:12:08 +0200 -- Benjamin Drung <bdrung@ubuntu.com> Sat, 30 Oct 2010 19:56:33 +0200
ubuntu-dev-tools (0.104) experimental; urgency=low ubuntu-dev-tools (0.104) experimental; urgency=low

View File

@ -109,11 +109,14 @@ class Version(debian.debian_support.Version):
return self.full_version.find('ubuntu') > 0 return self.full_version.find('ubuntu') > 0
def quote_parameter(parameter):
if parameter.find(" ") >= 0:
return '"' + parameter + '"'
else:
return parameter
def print_command(script_name, cmd): def print_command(script_name, cmd):
for i in xrange(len(cmd)): print "%s: I: %s" % (script_name, " ".join(map(quote_parameter, cmd)))
if cmd[i].find(" ") >= 0:
cmd[i] = '"' + cmd[i] + '"'
print "%s: I: %s" % (script_name, " ".join(cmd))
def remove_signature(dscname, script_name=None, verbose=False): def remove_signature(dscname, script_name=None, verbose=False):
'''Removes the signature from a .dsc file if the .dsc file is signed.''' '''Removes the signature from a .dsc file if the .dsc file is signed.'''