From 69e776a291872d0b20f5a55527b68ea09996b920 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Thu, 21 Dec 2006 15:21:43 +0100 Subject: git-buildpackage: add an option (--git-cleaner) that allows to specify a different clean command (Closes: #403987) --- git-buildpackage | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'git-buildpackage') diff --git a/git-buildpackage b/git-buildpackage index 95a9491c..95d7216d 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:" -- cgit v1.2.3