summaryrefslogtreecommitdiff
path: root/gbp/config.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-07-15 14:54:44 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-07-21 13:02:48 +0000
commit1370bc3c58d07c23eed842ce122a668b1fcfe480 (patch)
treef56d9c520d18c66fb4f8533cdfed58b608d36c53 /gbp/config.py
parent37bdee35b8fc66f33dc66c7bc7f048636ceefdd2 (diff)
downloadgit-buildpackage-1370bc3c58d07c23eed842ce122a668b1fcfe480.tar.gz
git-buildpackage-1370bc3c58d07c23eed842ce122a668b1fcfe480.tar.bz2
git-buildpackage-1370bc3c58d07c23eed842ce122a668b1fcfe480.zip
buildpackage-rpm: add '--git-native' option
Can be used to explicitly configure a package as native or non-native. Default behavior is still to guess based on the existence of upstream branch. Change-Id: I09c3797fd3d88285ee1e920f4c40e3b22c06916a Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py
index a2c28def..90c5068d 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -578,6 +578,7 @@ class GbpOptionParserRpm(GbpOptionParser):
defaults = dict(GbpOptionParser.defaults)
defaults.update( {
'vendor' : 'vendor',
+ 'native' : 'auto',
'builder' : 'rpmbuild',
'cleaner' : '/bin/true',
'merge' : 'False',
@@ -615,6 +616,8 @@ class GbpOptionParserRpm(GbpOptionParser):
help.update( {
'vendor':
"Distribution vendor name",
+ 'native':
+ "Treat this package as native, default is '%(native)s'",
'packaging-dir':
"subdir where packaging files are stored, default is '%(packaging-dir)s'",
'packaging-tag':