summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
authorBla Fasel <agx@sigxcpu.org>2014-08-11 11:00:16 +0200
committerBla Fasel <agx@sigxcpu.org>2014-08-11 11:00:16 +0200
commit7cc96699f234303bc86908172fabcd6177b18571 (patch)
tree98ef853f6788213f994ecec45ccb5c476b5cfc2c /gbp
parent688c7c3db3d5e1e04c9dfde01394d5e7fcb20dec (diff)
downloadgit-buildpackage-7cc96699f234303bc86908172fabcd6177b18571.tar.gz
git-buildpackage-7cc96699f234303bc86908172fabcd6177b18571.tar.bz2
git-buildpackage-7cc96699f234303bc86908172fabcd6177b18571.zip
Use better variable name
It's a boolean indicating wether we fetch the author information from git not the author information itself. Git-Dch: Ignore
Diffstat (limited to 'gbp')
-rw-r--r--gbp/scripts/dch.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index c6172698..49333882 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -64,7 +64,7 @@ def get_author_email(repo, use_git_config):
return author, email
-def fixup_section(repo, git_author, options, dch_options):
+def fixup_section(repo, use_git_author, options, dch_options):
"""
Fixup the changelog header and trailer's committer and email address
@@ -73,7 +73,7 @@ def fixup_section(repo, git_author, options, dch_options):
This also applies --distribution and --urgency options passed to gbp dch
"""
- author, email = get_author_email(repo, git_author)
+ author, email = get_author_email(repo, use_git_author)
used_options = ['distribution', 'urgency']
opts = []
mainttrailer_opts = [ '--nomainttrailer', '--mainttrailer', '-t' ]
@@ -160,9 +160,9 @@ def mangle_changelog(changelog, cp, snapshot=''):
raise GbpError("Error mangling changelog %s" % e)
-def do_release(changelog, repo, cp, git_author, dch_options):
+def do_release(changelog, repo, cp, use_git_author, dch_options):
"""Remove the snapshot header and set the distribution"""
- author, email = get_author_email(repo, git_author)
+ author, email = get_author_email(repo, use_git_author)
(release, snapshot) = snapshot_version(cp['Version'])
if snapshot:
cp['MangledVersion'] = release
@@ -350,7 +350,7 @@ def build_parser(name):
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")
+ version_group.add_boolean_config_file_option(option_name="git-author", dest="use_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",
help="Meta tags for the bts close commands, default is '%(meta-closes)s'")
@@ -512,11 +512,11 @@ def main(argv):
version=version_change,
dch_options=dch_options)
- fixup_section(repo, git_author=options.git_author, options=options,
+ fixup_section(repo, use_git_author=options.use_git_author, options=options,
dch_options=dch_options)
if options.release:
- do_release(changelog, repo, cp, git_author=options.git_author,
+ do_release(changelog, repo, cp, use_git_author=options.use_git_author,
dch_options=dch_options)
elif options.snapshot:
(snap, version) = do_snapshot(changelog, repo, options.snapshot_number)