aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2007-10-03 14:15:05 +0200
committerGuido Guenther <agx@sigxcpu.org>2007-10-03 14:15:05 +0200
commitb74b65dca23922dc739284b1dbc28f4d8335a115 (patch)
tree235bd7d5215124238c1fe637054a8dfac6b48479
parent6524b25c61b7ce3bf375e5951bbe4bc2d8777333 (diff)
fix error case
-rwxr-xr-xgit-dch3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-dch b/git-dch
index d2dda69..91ca152 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)