cmd-compress: log skipped artifacts once
It's slightly less noisy that way.
@@ -118,9 +118,10 @@ def compress_one_builddir(builddir):
if len(args.artifact) > 0:
only_artifacts = set(args.artifact)
+ skipped = []
for img_format, img in buildmeta['images'].items():
if img.get('skip-compression', False):
- print(f"Skipping {img_format}")
+ skipped += [img_format]
continue
if only_artifacts is not None and img_format not in only_artifacts:
continue
@@ -159,6 +160,8 @@ def compress_one_builddir(builddir):
# try to delete the original file if it's somehow still around
rm_allow_noent(filepath[:-3])
+ if len(skipped) > 0:
+ print(f"Skipped artifacts: {skipped}")
if at_least_one:
print(f"Updated: {buildmeta_path}")
return at_least_one
@@ -189,10 +192,11 @@ def uncompress_one_builddir(builddir):
if len(args.artifact) > 0:
only_artifacts = set(args.artifact)
+ skipped = []
skipped_missing = []
for img_format, img in buildmeta['images'].items():
if img.get('skip-compression', False):
- print(f"Skipping {img_format}")
+ skipped += [img_format]
continue
if only_artifacts is not None and img_format not in only_artifacts:
continue
@@ -246,6 +250,8 @@ def uncompress_one_builddir(builddir):
# try to delete the original file if it's somehow still around
rm_allow_noent(filepath[:-3])
+ if len(skipped) > 0:
+ print(f"Skipped artifacts: {skipped}")
if len(skipped_missing) > 0:
print(f"Skipped missing artifacts: {skipped_missing}")
if at_least_one:
