From 0ab0b79471669eb3a4d647e625009c62f9f3b241 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 3 Sep 2024 10:25:06 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Invert=20the=20dists-to-attest?= =?UTF-8?q?=20validity=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This bug sneaked into #236 but should not affect many people as the attestations generation feature is experimental and opt-in. Fixes #256 --- attestations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attestations.py b/attestations.py index 6863c83..d8bca49 100644 --- a/attestations.py +++ b/attestations.py @@ -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 '