'builder' : 'rpmbuild',
'cleaner' : '/bin/true',
'export-dir' : '../rpmbuild',
+ 'native' : 'auto',
'ignore-untracked' : 'False',
'rpmbuild-builddir' : 'BUILD',
'rpmbuild-rpmdir' : 'RPMS',
"Spec file to use, 'auto' makes gbp to guess, other values "
"make the packaging-dir option to be ignored, default is "
"'%(spec-file)s'",
+ 'native':
+ "Treat this package as native, default is '%(native)s'",
'ignore-untracked':
"build with untracked files in the source tree, default is "
"'%(ignore-untracked)s'",
def is_native(repo, options):
"""Determine whether a package is native or non-native"""
- if repo.has_branch(options.upstream_branch):
- return False
- return True
+ if options.native.is_auto():
+ return not repo.has_branch(options.upstream_branch)
+ return options.native.is_on()
def setup_builder(options, builder_args):
dest="color_scheme")
parser.add_config_file_option(option_name="notify", dest="notify", type='tristate')
parser.add_config_file_option(option_name="vendor", action="store", dest="vendor")
+ parser.add_config_file_option(option_name="native", dest="native",
+ type='tristate')
tag_group.add_option("--git-tag", action="store_true", dest="tag", default=False,
help="create a tag after a successful build")
tag_group.add_option("--git-tag-only", action="store_true", dest="tag_only", default=False,