summaryrefslogtreecommitdiff
path: root/gbp/config.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-06-26 17:15:19 +0200
committerGuido Günther <agx@sigxcpu.org>2013-06-26 18:18:32 +0200
commita5aff11ba22a5b2f2c56d3325f431d51681e6c9b (patch)
tree3417d73fb0eddf7aa64591ed0b0e2b4873ef4673 /gbp/config.py
parent375014db7fa3981b1b0e071013fb365a3840b32d (diff)
downloadgit-buildpackage-a5aff11ba22a5b2f2c56d3325f431d51681e6c9b.tar.gz
git-buildpackage-a5aff11ba22a5b2f2c56d3325f431d51681e6c9b.tar.bz2
git-buildpackage-a5aff11ba22a5b2f2c56d3325f431d51681e6c9b.zip
Consistently call gbp the supercommand
and robustify against invalid modules names.
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/config.py b/gbp/config.py
index f61ebc55..fdf16477 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -313,8 +313,8 @@ class GbpOptionParser(OptionParser):
if not (self.command.startswith('gbp-') or
self.command.startswith('git-')):
- # Invoked as gbp <subcommand> syntax, so parse the old sections
- # of {gbp.git}-<subcommand> for backward compatibility:
+ # Invoked as gbp <command> syntax, so parse the old sections
+ # of {gbp.git}-<command> for backward compatibility:
for prefix in ['gbp', 'git']:
oldcmd = '%s-%s' % (prefix, self.command)
if parser.has_section(oldcmd):