summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-01-11 21:36:22 +0100
committerGuido Günther <agx@sigxcpu.org>2012-01-11 21:48:34 +0100
commitcd410237326ccaf8250908ace65db01f47355170 (patch)
tree1e94702425f0b5c957776c824db06295cbd80ec4 /gbp
parent2d84986794d7edaaaca53d3e24390429a1bd327b (diff)
downloadgit-buildpackage-cd410237326ccaf8250908ace65db01f47355170.tar.gz
git-buildpackage-cd410237326ccaf8250908ace65db01f47355170.tar.bz2
git-buildpackage-cd410237326ccaf8250908ace65db01f47355170.zip
buildpackage: Allow to pass pbuilder options
via commandline or gbp.conf
Diffstat (limited to 'gbp')
-rw-r--r--gbp/config.py3
-rw-r--r--gbp/scripts/buildpackage.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 030f1164..5c2a2d90 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -125,6 +125,7 @@ class GbpOptionParser(OptionParser):
'submodules' : 'False',
'time-machine' : 1,
'pbuilder-autoconf' : 'True',
+ 'pbuilder-options': ''
}
help = {
'debian-branch':
@@ -203,6 +204,8 @@ class GbpOptionParser(OptionParser):
"don't try head commit only to apply the patch queue but look TIME_MACHINE commits back",
'pbuilder-autoconf':
"Wheter to configure pbuilder automatically.",
+ 'pbuilder-options':
+ "Options to pass to pbuilder, default is '%(pbuilder-options)s'",
}
config_files = [ '/etc/git-buildpackage/gbp.conf',
os.path.expanduser('~/.gbp.conf'),
diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py
index 8510ed14..8b98e0ba 100644
--- a/gbp/scripts/buildpackage.py
+++ b/gbp/scripts/buildpackage.py
@@ -418,6 +418,8 @@ def setup_pbuilder(options):
os.environ['BUILDER'] = "qemubuilder"
if not options.pbuilder_autoconf:
os.environ['GIT_PBUILDER_AUTOCONF'] = "no"
+ if options.pbuilder_options:
+ os.environ['GIT_PBUILDER_OPTIONS'] = options.pbuilder_options
def parse_args(argv, prefix):
@@ -494,6 +496,7 @@ def parse_args(argv, prefix):
cmd_group.add_config_file_option(option_name="dist", dest="pbuilder_dist")
cmd_group.add_config_file_option(option_name="arch", dest="pbuilder_arch")
cmd_group.add_boolean_config_file_option(option_name = "pbuilder-autoconf", dest="pbuilder_autoconf")
+ cmd_group.add_config_file_option(option_name="pbuilder-options", dest="pbuilder_options")
export_group.add_config_file_option(option_name="export-dir", dest="export_dir", type="path",
help="before building the package export the source into EXPORT_DIR, default is '%(export-dir)s'")
export_group.add_config_file_option("export", dest="export",