diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-03-21 09:52:34 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-03-21 23:41:57 +0100 |
commit | b9d03aff15778f0e32487bec3a76da2e5024929e (patch) | |
tree | 36b84fadf7ed62f354bfd48586a881ce95532bbb /gbp/config.py | |
parent | a884ef569828d9d7875427084d7c830f168a655c (diff) |
gbp-create-remote-repo: add --remote-config
This specifies an additional config file section that can be used
to preconfigure different remote locations.
Diffstat (limited to 'gbp/config.py')
-rw-r--r-- | gbp/config.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py index 960d4b2e..35c78b40 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -126,6 +126,7 @@ class GbpOptionParser(OptionParser): 'pbuilder-autoconf' : 'True', 'pbuilder-options': '', 'template-dir': '', + 'remote-config': '', } help = { 'debian-branch': @@ -210,7 +211,9 @@ class GbpOptionParser(OptionParser): 'pbuilder-options': "Options to pass to pbuilder, default is '%(pbuilder-options)s'", 'template-dir': - "Template directory used by git init, default is %(template-dir)s", + "Template directory used by git init, default is '%(template-dir)s'", + 'remote-config': + "Remote defintion in gbp.conf used to create the remote repository", } def_config_files = [ '/etc/git-buildpackage/gbp.conf', @@ -358,6 +361,7 @@ class GbpOptionParser(OptionParser): neg_help = "negates '--%s%s'" % (self.prefix, option_name) self.add_config_file_option(option_name="no-%s" % option_name, dest=dest, help=neg_help, action="store_false") + class GbpOptionGroup(OptionGroup): def add_config_file_option(self, option_name, dest, help=None, **kwargs): """ |