diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-10-15 16:02:22 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-10-25 18:59:22 +0200 |
commit | 30c1821791cce910f250b40b1949084b8b5012e1 (patch) | |
tree | 2c05a49b01a4cf8f762ce7cc94e032d04a585825 /gbp | |
parent | 38788670ee6e44375da3ff2eb253f50c8853023e (diff) |
Add support dch's --security option
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/scripts/dch.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py index b6fbab1..5c253f9 100644 --- a/gbp/scripts/dch.py +++ b/gbp/scripts/dch.py @@ -384,6 +384,8 @@ def main(argv): help="Increment the Debian release number for a Debian QA Team upload, and add a QA upload changelog comment.") version_group.add_option("--team", dest="team", action="store_true", default=False, help="Increment the Debian release number for a Debian Team upload, and add a Team upload changelog comment.") + version_group.add_option("--security", dest="security", action="store_true", default=False, + help="Increment the Debian release number for a security upload and add a security upload changelog comment.") version_group.add_boolean_config_file_option(option_name="git-author", dest="git_author") commit_group.add_boolean_config_file_option(option_name="meta", dest="meta") commit_group.add_config_file_option(option_name="meta-closes", dest="meta_closes", @@ -450,7 +452,8 @@ def main(argv): commits.reverse() # add a new changelog section if: - if options.new_version or options.bpo or options.nmu or options.qa or options.team: + if (options.new_version or options.bpo or options.nmu or options.qa or + options.team or options.security): if options.bpo: version_change['increment'] = '--bpo' elif options.nmu: @@ -459,6 +462,8 @@ def main(argv): version_change['increment'] = '--qa' elif options.team: version_change['increment'] = '--team' + elif options.security: + version_change['increment'] = '--security' else: version_change['version'] = options.new_version # the user wants to force a new version |