msger.error('No package repository specified.')
if opts.noinit:
- cmd += ['--noinit']
+ cmd += ['--no-init']
+ if opts.ccache:
+ cmd += ['--ccache']
cmd += [specfile]
if hostarch != buildarch and buildarch in change_personality:
cmd = [ change_personality[buildarch] ] + cmd;
- msger.info(' '.join(cmd))
-
if buildarch.startswith('arm'):
try:
utils.setup_qemu_emulator()
mygit = git.Git(workdir)
mygit.archive("%s-%s/" % (name, version), tarball)
+ if opts.incremental:
+ cmd += ['--rsync-src=%s' % os.path.abspath(workdir)]
+ cmd += ['--rsync-dest=/home/abuild/rpmbuild/BUILD/%s-%s' % (name, version)]
+
+ msger.info(' '.join(cmd))
+
# runner.show() can't support interactive mode, so use subprocess insterad.
try:
rc = subprocess.call(cmd)
default=False,
dest='noinit',
help='Skip initialization of build root and start with build immediately')
+ @cmdln.option('--ccache',
+ action="store_true",
+ 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 need support of spec file,'
+ ' and tar ball unpack stage should be enabled with the '
+ 'condition of RPM macro RSYNCDONE')
@cmdln.option('--debuginfo',
action="store_true",
default=False,