--noinit can't be specified together with --clean or --clean-once
Change-Id: Ib3fd84ae6b53db9478b69c9daf99fe23c5f12c4e
if args.commit and args.include_all:
raise errors.Usage('--commit can\'t be specified together with '\
'--include-all')
+ if args.noinit and (args.clean or args.clean_once):
+ raise errors.Usage('--noinit can\'t be specified together with '\
+ '--clean or --clean-once')
workdir = args.gitdir
try:
cmd += ['--clean']
# check & prepare repos and build conf
- cmd += prepare_repos_and_build_conf(args, buildarch, profile)
+ if not args.noinit:
+ cmd += prepare_repos_and_build_conf(args, buildarch, profile)
+ else:
+ cmd += ['--noinit']
cmd += ['--path=%s' % workdir]
'build possible. This requires the configure scripts '
'in the spec to be referenced using the %%configure, '
'%%reconfigure and %%autogen macros')
+ parser.add_argument('--noinit', action='store_true',
+ help='start building directly')
parser.set_defaults(alias="lb")
return parser