Skip to content

Commit 92fb406

Browse files
committed
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
1 parent 5f00b71 commit 92fb406

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

easybuild/framework/easyblock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,9 @@ def obtain_file(self, filename, extension=False, urls=None, download_filename=No
754754
"""
755755
srcpaths = source_paths()
756756

757-
update_progress_bar(PROGRESS_BAR_DOWNLOAD_ALL, label=filename)
757+
# We don't account for the checksums file in the progress bar
758+
if filename != 'checksum.json':
759+
update_progress_bar(PROGRESS_BAR_DOWNLOAD_ALL, label=filename)
758760

759761
if alt_location is None:
760762
location = self.name

0 commit comments

Comments
 (0)