summaryrefslogtreecommitdiff
path: root/gbp/scripts/dch.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/scripts/dch.py')
-rwxr-xr-x[-rw-r--r--]gbp/scripts/dch.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index c0344805..b5882e62 100644..100755
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -308,7 +308,7 @@ def build_parser(name):
parser.add_option_group(custom_group)
parser.add_boolean_config_file_option(option_name = "ignore-branch", dest="ignore_branch")
- naming_group.add_config_file_option(option_name="debian-branch", dest="debian_branch")
+ naming_group.add_config_file_option(option_name="debian-branch", dest="packaging_branch")
naming_group.add_config_file_option(option_name="upstream-tag", dest="upstream_tag")
naming_group.add_config_file_option(option_name="debian-tag", dest="debian_tag")
naming_group.add_config_file_option(option_name="snapshot-number", dest="snapshot_number",
@@ -407,9 +407,11 @@ def main(argv):
if not options.ignore_branch:
raise
- if options.debian_branch != branch and not options.ignore_branch:
- gbp.log.err("You are not on branch '%s' but on '%s'" % (options.debian_branch, branch))
- raise GbpError("Use --ignore-branch to ignore or --debian-branch to set the branch name.")
+ if options.packaging_branch != branch and not options.ignore_branch:
+ gbp.log.err("You are not on branch '%s' but on '%s'" %
+ (options.packaging_branch, branch))
+ raise GbpError("Use --ignore-branch to ignore or --debian-branch "
+ "to set the branch name.")
source = DebianSource('.')
cp = source.changelog