refactor: simplify pack label, hash merge, diff exit

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 07:06:22 +02:00
1 parent c8a30de493
commit 05ae30ce48
4 files changed
+25 -21

No files matched your search

+2 -1
View File
@@ -207,7 +207,8 @@ def main() -> None:
json.dump(reports, sys.stdout, indent=2)
print()
if compared < len(platforms) and (args.platform or not compared):
# A named platform must be compared; --all must compare at least one.
if compared < (len(platforms) if args.platform else 1):
print(f"compared {compared} of {len(platforms)} platform(s)", file=sys.stderr)
sys.exit(1)