aboutsummaryrefslogtreecommitdiff
path: root/git-buildpackage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-12-21 15:21:43 +0100
committerGuido Guenther <agx@bogon.sigxcpu.org>2006-12-21 15:21:43 +0100
commit69e776a291872d0b20f5a55527b68ea09996b920 (patch)
treee82cc22292689a0ea021cf073235c0885daff85c /git-buildpackage
parent06e6289f643a7c71956b36d5cd253d2e86c9f292 (diff)
git-buildpackage: add an option (--git-cleaner) that allows to specify a different clean command (Closes: #403987)debian/0.2.19
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-xgit-buildpackage4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-buildpackage b/git-buildpackage
index 95a9491..95d7216 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -63,6 +63,8 @@ def main(argv):
help="verbose command execution")
parser.add_config_file_option(option_name="builder", dest="build_cmd",
help="command to build the package e.g. default is '%(builder)s'")
+ parser.add_config_file_option(option_name="cleaner", dest="clean_cmd",
+ help="command to build the package e.g. default is '%(cleaner)s'")
parser.add_config_file_option(option_name="upstream-branch", dest="upstream_branch",
help="upstream branch, default is '%(upstream-branch)s'")
parser.add_config_file_option(option_name="debian-branch", dest='debian_branch',
@@ -82,7 +84,7 @@ def main(argv):
try:
if not options.ignore_new:
- Command(options.build_cmd, ['clean'])()
+ Command(options.clean_cmd)()
(ret, out) = is_repository_clean('.')
if not ret:
print >>sys.stderr, "You have uncommitted changes in your source tree:"