From 0c351200a265153ba3d4f0c16f47f14dcfdf84c0 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 11 Feb 2021 13:28:17 -0300 Subject: [PATCH] Fixed list of compress dependencies. Wrong again. --- kibot/out_compress.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/kibot/out_compress.py b/kibot/out_compress.py index c808d9ad..1900e474 100644 --- a/kibot/out_compress.py +++ b/kibot/out_compress.py @@ -123,18 +123,17 @@ class CompressOptions(BaseOptions): if files_list is None: logger.error('Unknown output `{}` selected in {}'.format(f.from_output, parent)) exit(WRONG_ARGUMENTS) - if no_out_run: - continue - for file in files_list: - if not os.path.isfile(file): - # The target doesn't exist - if not out._done: - # The output wasn't created in this run, try running it - run_output(out) + if not no_out_run: + for file in files_list: if not os.path.isfile(file): - # Still missing, something is wrong - logger.error('Unable to generate `{}` from {}'.format(file, out)) - exit(INTERNAL_ERROR) + # The target doesn't exist + if not out._done: + # The output wasn't created in this run, try running it + run_output(out) + if not os.path.isfile(file): + # Still missing, something is wrong + logger.error('Unable to generate `{}` from {}'.format(file, out)) + exit(INTERNAL_ERROR) else: files_list = glob.iglob(os.path.join(GS.out_dir, f.source), recursive=True) # Filter and adapt them