don't quote Suite name

authorJulien Jehannet <julien.jehannet@logilab.fr>
changeset49c7b7aeee59
branchdefault
phasepublic
hiddenno
parent revision#64081c35bf05 accept symlink as valid distribution in repository
child revision#69801cc861d5 Added tag 2.1.0 for changeset ff83e7669ed0
files modified by this revision
apt_ftparchive.py
shelltools.py
# HG changeset patch
# User Julien Jehannet <julien.jehannet@logilab.fr>
# Date 1226684709 -3600
# Fri Nov 14 18:45:09 2008 +0100
# Node ID 49c7b7aeee598535634d98f23e44a3e0b9d49494
# Parent 64081c35bf05a5a9f7738e7cf2eabe39faf2b090
don't quote Suite name

diff --git a/apt_ftparchive.py b/apt_ftparchive.py
@@ -45,11 +45,11 @@
1          raise CommandError('apt-ftparchive exited with error status %d'%status)
2 
3  def release(debian_dir, aptconf, group, distrib):
4      release = open(osp.join(debian_dir, 'Release'), 'w')
5      command = ['apt-ftparchive', '-c', aptconf, 'release', debian_dir, '-o',
6 -               'APT::FTPArchive::Release::Suite="%s"' % distrib]
7 +               'APT::FTPArchive::Release::Suite=%s' % distrib]
8      logger.info('running %s$ %s', os.getcwd(), ' '.join(command))
9      pipe = subprocess.Popen(command,
10                              stdout=release)
11      status = pipe.wait()
12      if status != 0:
diff --git a/shelltools.py b/shelltools.py
@@ -27,13 +27,16 @@
13      uid and gid and numeric user and group ids (gid can also be a group name)
14      mod is the permission as an integer"""
15      gid = getgid(gid)
16      try:
17          os.chown(path, uid, gid)
18 +    except OSError, exc:
19 +        raise RuntimeError('Failed to set ownership %s,%s on %s: %s' % (uid, gid, path, exc))
20 +    try:
21          os.chmod(path, mod)
22      except OSError, exc:
23 -        raise RuntimeError('Failed to set permissions on %s: %s' % (path, exc))
24 +        raise RuntimeError('Failed to set permissions %s on %s: %s' % (mod, path, exc))
25 
26  def getgid(group):
27      """return the group id for group.
28 
29      group can be a group name or or a goup id (in which case it is