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/pull.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/pull.py')
-rwxr-xr-x | gbp/scripts/pull.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/pull.py b/gbp/scripts/pull.py index d50ffc23..9c6f2c5c 100755 --- a/gbp/scripts/pull.py +++ b/gbp/scripts/pull.py @@ -22,7 +22,7 @@ import sys import os, os.path from gbp.command_wrappers import (Command, CommandExecFailed) -from gbp.config import (GbpOptionParser, GbpOptionGroup) +from gbp.config import (GbpOptionParserCommon, GbpOptionGroup) from gbp.errors import GbpError from gbp.git import GitRepositoryError from gbp.deb.git import DebianGitRepository @@ -70,8 +70,8 @@ def fast_forward_branch(branch, repo, options): def main(argv): retval = 0 - parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='', - usage='%prog [options] - safely update a repository from remote') + parser = GbpOptionParserCommon(command=os.path.basename(argv[0]), prefix='', + usage='%prog [options] - safely update a repository from remote') branch_group = GbpOptionGroup(parser, "branch options", "branch update and layout options") parser.add_option_group(branch_group) branch_group.add_option("--force", action="store_true", dest="force", default=False, |