From: Guido Günther Date: Mon, 15 Oct 2012 14:02:22 +0000 (+0200) Subject: Add support dch's --security option X-Git-Tag: debian/0.6.0_git20121124~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30c1821791cce910f250b40b1949084b8b5012e1;p=tools%2Fgit-buildpackage.git Add support dch's --security option --- 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