From 30c1821791cce910f250b40b1949084b8b5012e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Mon, 15 Oct 2012 16:02:22 +0200 Subject: [PATCH] Add support dch's --security option --- gbp/scripts/dch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.7.4