From 92fb40673017ffe4d19b38af9d22a5f680a14ecb Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Fri, 28 Jun 2024 14:53:05 +0200 Subject: [PATCH] fix fetch progress bar showing to many files As we also call `obtain_file` for `checksum.json` the progress bar will show one file to many. E.g. > Fetching files: 100% (4/3) Ignore that file for updating the progressbar --- easybuild/framework/easyblock.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/easybuild/framework/easyblock.py b/easybuild/framework/easyblock.py index 80cddf8819..f2532df340 100644 --- a/easybuild/framework/easyblock.py +++ b/easybuild/framework/easyblock.py @@ -754,7 +754,9 @@ def obtain_file(self, filename, extension=False, urls=None, download_filename=No """ srcpaths = source_paths() - update_progress_bar(PROGRESS_BAR_DOWNLOAD_ALL, label=filename) + # We don't account for the checksums file in the progress bar + if filename != 'checksum.json': + update_progress_bar(PROGRESS_BAR_DOWNLOAD_ALL, label=filename) if alt_location is None: location = self.name