This option can be used to install more extra packages in build root.
for example, developer can add option `--extra-packs=zypper,vim` to
install extra zypper and vim to final build root.
if opts.ccache:
cmd += ['--ccache']
+ if opts.extra_packs:
+ extrapkgs = opts.extra_packs.split(',')
+ cmd += ['--extra-packs=%s' % ' '.join(extrapkgs)]
+
if hostarch != buildarch and buildarch in change_personality:
cmd = [ change_personality[buildarch] ] + cmd
default=None,
dest='spec',
help='Specify a spec file to use')
+ @cmdln.option('--extra-packs',
+ default=None,
+ dest='extra_packs',
+ help='Specify extra packages to install to build root '\
+ 'multiple packages can be separated by comma')
@cmdln.option('--debuginfo',
action='store_true',
default=False,