From b74b65dca23922dc739284b1dbc28f4d8335a115 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Wed, 3 Oct 2007 14:15:05 +0200 Subject: fix error case --- git-dch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-dch b/git-dch index d2dda69e..91ca152e 100755 --- a/git-dch +++ b/git-dch @@ -53,7 +53,8 @@ def add_changelog_entry(msg, author): def add_changelog_section(msg, distribution): - ret = os.system("dch --distribution=%s -i %s" % (distribution, msg)) + cmd = "dch --distribution=%s -i %s" % (distribution, msg) + ret = os.system(cmd) if ret: raise GbpError, "Error executing %s: %d" % (cmd, ret) -- cgit v1.2.3