summaryrefslogtreecommitdiff
path: root/gbp/scripts/pq.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-01-12 15:40:42 +0200
committerGuido Günther <agx@sigxcpu.org>2012-02-13 18:54:16 +0100
commitbca9f76135c5b4975b261018f0c9013243f38846 (patch)
tree9047069f7ac0c33ae3e920412d2c489f28fe3e01 /gbp/scripts/pq.py
parent24e772577b071cb4297a5ed4b807aab334027144 (diff)
downloadgit-buildpackage-bca9f76135c5b4975b261018f0c9013243f38846.tar.gz
git-buildpackage-bca9f76135c5b4975b261018f0c9013243f38846.tar.bz2
git-buildpackage-bca9f76135c5b4975b261018f0c9013243f38846.zip
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/pq.py')
-rwxr-xr-x[-rw-r--r--]gbp/scripts/pq.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py
index 9193f2b6..dbb4618c 100644..100755
--- a/gbp/scripts/pq.py
+++ b/gbp/scripts/pq.py
@@ -24,7 +24,7 @@ import shutil
import subprocess
import sys
import tempfile
-from gbp.config import (GbpOptionParser, GbpOptionGroup)
+from gbp.config import (GbpOptionParserDebian, GbpOptionGroup)
from gbp.git import (GitRepositoryError, GitRepository)
from gbp.command_wrappers import (Command, GitCommand, RunAtCommand,
CommandExecFailed)
@@ -337,8 +337,8 @@ def switch_pq(repo, current):
def main(argv):
retval = 0
- parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='',
- usage="%prog [options] action - maintain patches on a patch queue branch\n"
+ parser = GbpOptionParserDebian(command=os.path.basename(argv[0]), prefix='',
+ usage="%prog [options] action - maintain patches on a patch queue branch\n"
"Actions:\n"
" export export the patch queue associated to the current branch\n"
" into a quilt patch series in debian/patches/ and update the\n"