dry run for all common

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-10-18 00:00:00 +00:00
parent 23a9d767ba
commit cb3d8929ba
4 changed files with 16 additions and 7 deletions

View File

@@ -20,7 +20,8 @@ args = common.setup(parser)
if args.clean:
common.rmrf(common.linux_build_dir)
else:
start_time = time.time()
if not common.dry_run:
start_time = time.time()
os.makedirs(common.linux_build_dir, exist_ok=True)
shutil.copy2(
os.path.join(common.linux_config_dir, 'buildroot-{}'.format(args.arch)),
@@ -82,5 +83,6 @@ else:
),
**common_args,
) == 0
end_time = time.time()
common.print_time(end_time - start_time)
if not common.dry_run:
end_time = time.time()
common.print_time(end_time - start_time)