diff options
author | Guido Guenther <agx@sigxcpu.org> | 2008-06-20 09:15:27 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-06-20 09:15:27 +0200 |
commit | 26c0310d023fc051583b703bb3f08409b409b4c9 (patch) | |
tree | 5d84e44f5e8b1572ff9039d040acced801f391e6 /git-import-orig | |
parent | e6ce2dff1e41477cc7311fa1de83bb10c57467d1 (diff) | |
download | git-buildpackage-26c0310d023fc051583b703bb3f08409b409b4c9.tar.gz git-buildpackage-26c0310d023fc051583b703bb3f08409b409b4c9.tar.bz2 git-buildpackage-26c0310d023fc051583b703bb3f08409b409b4c9.zip |
make no-dch configurable via gbp.conf
Diffstat (limited to 'git-import-orig')
-rwxr-xr-x | git-import-orig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-import-orig b/git-import-orig index 0bc43f73..22af1008 100755 --- a/git-import-orig +++ b/git-import-orig @@ -102,8 +102,8 @@ def main(argv): help="verbose command execution") parser.add_option("--no-merge", dest='merge', action="store_false", default=True, help="after import dont do any merging to another branch") - parser.add_option("--no-dch", dest='run_dch', action="store_false", default=True, - help="don't call dch after the import") + parser.add_config_file_option(option_name="no-dch", dest='no_dch', + help="don't call dch after the import", action="store_true") parser.add_config_file_option(option_name="debian-branch", dest='debian_branch', help="branch the debian patch is being developed on, default is '%(debian-branch)s'") parser.add_config_file_option(option_name="upstream-branch", dest="upstream_branch", @@ -219,7 +219,7 @@ on howto create it otherwise use --upstream-branch to specify it. gitPullUpstream() except gbpc.CommandExecFailed: raise GbpError, """Merge failed, please resolve and run "dch -v %s-1".""" % version - if options.run_dch: + if not options.no_dch: epoch = '' if os.access('debian/changelog', os.R_OK): cp = parse_changelog('debian/changelog') |