diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-01-12 15:40:42 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-02-13 18:54:16 +0100 |
commit | bca9f76135c5b4975b261018f0c9013243f38846 (patch) | |
tree | 9047069f7ac0c33ae3e920412d2c489f28fe3e01 /gbp/scripts/create_remote_repo.py | |
parent | 24e772577b071cb4297a5ed4b807aab334027144 (diff) |
Refactor config.py as preparation for rpm support.
Split GbpOptionParser in to a common base class and a Debian
specific subclass, as a preparation for upcoming RPM support.
This allows having different default values (and help texts) for common
options between different package types, and, clearer separation of
package type specific options.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Diffstat (limited to 'gbp/scripts/create_remote_repo.py')
-rw-r--r-- | gbp/scripts/create_remote_repo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/create_remote_repo.py b/gbp/scripts/create_remote_repo.py index d00963c8..d6174e36 100644 --- a/gbp/scripts/create_remote_repo.py +++ b/gbp/scripts/create_remote_repo.py @@ -28,7 +28,7 @@ import tty, termios import re from gbp.deb.changelog import ChangeLog, NoChangeLogError from gbp.command_wrappers import (CommandExecFailed, GitCommand) -from gbp.config import (GbpOptionParser, GbpOptionGroup) +from gbp.config import (GbpOptionParserDebian, GbpOptionGroup) from gbp.errors import GbpError from gbp.git import (GitRepositoryError, GitRepository) import gbp.log @@ -146,8 +146,8 @@ def main(argv): retval = 0 changelog = 'debian/changelog' - parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='', - usage='%prog [options] - create a remote repository') + parser = GbpOptionParserDebian(command=os.path.basename(argv[0]), prefix='', + usage='%prog [options] - create a remote repository') branch_group = GbpOptionGroup(parser, "branch options", "branch layout and tracking options") branch_group.add_config_file_option(option_name="remote-url-pattern", dest="remote_url") parser.add_option_group(branch_group) |