aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-12-08 17:11:43 +0100
committerGuido Guenther <agx@bogon.sigxcpu.org>2006-12-08 17:11:43 +0100
commit57d9b860cbfa4e18057cd7366db3769d6ea20d22 (patch)
treeab7e33d88dcc5f1e80cb32ce8266343e098a4cb3
parent9e54f169eae8db3984302171d7772795deac9513 (diff)
git-buildpackage: properly pass builder args
-rw-r--r--debian/changelog3
-rw-r--r--git_buildpackage/__init__.py10
2 files changed, 7 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog
index 9bee22a..4776e03 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,8 +4,9 @@ git-buildpackage (0.2.15) experimental; urgency=low
options. This allows us to have a nice "trustable" history. See:
http://www.kernel.org/pub/software/scm/git/docs/
on how this ensured.
+ * git-buildpackage: properly pass builder args
- -- Guido Guenther <agx@sigxcpu.org> Wed, 6 Dec 2006 22:04:41 +0100
+ -- Guido Guenther <agx@sigxcpu.org> Fri, 8 Dec 2006 17:10:47 +0100
git-buildpackage (0.2.14) experimental; urgency=low
diff --git a/git_buildpackage/__init__.py b/git_buildpackage/__init__.py
index 09a33f8..189f5e9 100644
--- a/git_buildpackage/__init__.py
+++ b/git_buildpackage/__init__.py
@@ -19,19 +19,19 @@ class Command(object):
verbose=False
def __init__(self, cmd, args=[]):
- self.cmd=cmd
+ self.cmd=cmd.split()
self.args=args
- self.run_error="Couldn't run '%s %s'" % (cmd," ".join(args))
+ self.run_error="Couldn't run '%s'" % (" ".join(self.cmd+args))
def __run(self, args):
try:
if self.verbose:
print self.cmd, self.args, args
- retcode = subprocess.call([self.cmd]+self.args+args)
+ retcode = subprocess.call(self.cmd + self.args + args)
if retcode < 0:
- print >>sys.stderr, "%s was terminated by signal %d" % (self.cmd, -retcode)
+ print >>sys.stderr, "%s was terminated by signal %d" % (self.cmd[0], -retcode)
elif retcode > 0:
- print >>sys.stderr, "%s returned %d" % (self.cmd, retcode)
+ print >>sys.stderr, "%s returned %d" % (self.cmd[0], retcode)
except OSError, e:
print >>sys.stderr, "Execution failed:", e
retcode=1