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/dch.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/dch.py')
-rw-r--r-- | gbp/scripts/dch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py index 2ee988d..3a4a02a 100644 --- a/gbp/scripts/dch.py +++ b/gbp/scripts/dch.py @@ -26,7 +26,7 @@ import subprocess import gbp.command_wrappers as gbpc import gbp.dch as dch import gbp.log -from gbp.config import GbpOptionParser, GbpOptionGroup +from gbp.config import GbpOptionParserDebian, GbpOptionGroup from gbp.errors import GbpError from gbp.deb import compare_versions from gbp.deb.git import GitRepositoryError, DebianGitRepository @@ -332,8 +332,8 @@ def main(argv): version_change = {} try: - parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='', - usage='%prog [options] paths') + parser = GbpOptionParserDebian(command=os.path.basename(argv[0]), prefix='', + usage='%prog [options] paths') except ConfigParser.ParsingError, err: gbp.log.errror(err) return 1 |