if -D not specified, distconf key in ~/.gbs.conf would be used.
Options:
-h, --help show this help message and exit
- --debuginfo Enable build debuginfo sub-packages
--noinit Skip initialization of build root and start with build
immediately
-C, --clean Delete old build root before initializing it
except GitRepositoryError, err:
msger.error(str(err))
- if not opts.incremental:
- utils.gitStatusChecker(repo, opts)
+ utils.gitStatusChecker(repo, opts)
workdir = repo.path
hostarch = get_hostarch()
cmd += ['--jobs=%s' % build_jobs]
if opts.clean:
cmd += ['--clean']
- if opts.debuginfo:
- cmd += ['--debug']
if opts.noinit:
cmd += ['--no-init']
cmd += [spec.specfile]
- if opts.incremental:
- cmd += ['--rsync-src=%s' % os.path.abspath(workdir)]
- cmd += ['--rsync-dest=/home/abuild/rpmbuild/BUILD/%s-%s' % \
- (spec.name, spec.version)]
-
# if current user is root, don't run with sucmd
if os.getuid() != 0:
cmd = ['sudo'] + proxies + cmd
default=False,
dest='ccache',
help='Use ccache to speed up rebuilds')
- @cmdln.option('-I', '--incremental',
- action="store_true",
- default=False,
- dest='incremental',
- help='Do incremental build, which needs support of spec file,'
- ' and tar ball unpack stage should be enabled with the '
- 'condition of RPM macro RSYNCDONE')
@cmdln.option('--skip-conf-repos',
action="store_true",
default=False,
default=None,
dest='out',
help='Output directory for RPMs')
- @cmdln.option('--debuginfo',
- action='store_true',
- default=False,
- dest='debuginfo',
- help='Enable build debuginfo sub-packages')
def do_build(self, _subcmd, opts, *args):
"""${cmd_name}: local build package