🚑 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:
parent
8a08d61689
commit
0ab0b79471
|
@ -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 '
|
||||
|
|
Loading…
Reference in New Issue