[SCM] live-magic branch, master, updated. 1.11-14-gfcb6f4d
Chris Lamb
lamby at debian.org
Mon Aug 2 06:07:47 UTC 2010
The following commit has been merged in the master branch:
commit 041560db108785d49df2d4098074ce60d99b46e0
Author: Chris Lamb <lamby at debian.org>
Date: Mon Aug 2 01:27:02 2010 -0400
Pass {true,false} instead of {True,False} to lh config.
diff --git a/DebianLive/__init__.py b/DebianLive/__init__.py
index 69fdedb..1e96f96 100644
--- a/DebianLive/__init__.py
+++ b/DebianLive/__init__.py
@@ -38,11 +38,18 @@ class Config(object):
if not os.path.exists(self.dir):
os.makedirs(self.dir)
- options = ["--%s='%s'" % (k.replace('_', '-'), v)
- for k, v in kwargs.iteritems()]
+ options = []
+
+ for k, v in kwargs.iteritems():
+ if isinstance(v, (bool,)):
+ v = str(v).lower()
+ options.append("--%s='%s'" % (k.replace('_', '-'), v))
+
cmd = 'cd "%s"; lh config --ignore-system-defaults %s' % (os.path.abspath(self.dir),
' '.join(options))
+ print "*", cmd
+
result, out = commands.getstatusoutput(cmd)
if result != 0:
raise IOError, out
--
live-magic
More information about the debian-live-changes
mailing list