aboutsummaryrefslogtreecommitdiff
path: root/git-buildpackage
diff options
context:
space:
mode:
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-xgit-buildpackage8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-buildpackage b/git-buildpackage
index ecf58d25..ba1daaea 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -54,21 +54,21 @@ def main(argv):
clean_cmd='%s clean' % options.build_cmd
if not options.ignore_new:
- if not exec_command(clean_cmd)[0]: sys.exit(1)
+ if not exec_command(clean_cmd)[0]: return 1
(status, out) = commands.getstatusoutput('git status')
msgs=out.split('\n')
if msgs[0] != 'nothing to commit':
print "You have uncommitted changes in your source tree:"
print out
print "Use --git-ignore_new to override"
- sys.exit(1)
+ return 1
cmd=options.build_cmd+' -i.git '+" ".join(dpkg_args)
- if not exec_command(cmd)[0]: sys.exit(1)
+ if not exec_command(cmd)[0]: return 1
if options.tag:
version=get_version()
if version:
print "Tagging", version
- if not exec_command('git-tag %s' % version)[0]: sys.exit(1)
+ if not exec_command('git-tag %s' % version)[0]: return 1
else:
print >>sys.stderr,"Can't parse version from changes file"