🚑 Invert the dists-to-attest validity check

This bug sneaked into #236 but should not affect many people as the
attestations generation feature is experimental and opt-in.

Fixes #256
This commit is contained in:
Sviatoslav Sydorenko 2024-09-03 10:25:06 +02:00
parent 8a08d61689
commit 0ab0b79471
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def collect_dists(packages_dir: Path) -> list[Path]:
# Make sure everything that looks like a dist actually is one.
# We do this up-front to prevent partial signing.
if (invalid_dists := [path for path in dist_paths if path.is_file()]):
if (invalid_dists := [path for path in dist_paths if not path.is_file()]):
invalid_dist_list = ', '.join(map(str, invalid_dists))
die(
'The following paths look like distributions but '