Skip to content

Commit

Permalink
craft_packages: correct artifact count check
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Oct 23, 2023
1 parent 1fa40b8 commit d4fd2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setupsrc/pypdfium2_setup/craft_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self):
self.files = [fp for fp in [ModuleDir_Raw / fn for fn in file_names] if fp.exists()]
if len(self.files) == 0:
return
elif len(self.files) != 2:
elif len(self.files) != len(file_names):
print(f"Warning: Expected exactly 2 platform files, but found {len(self.files)}.", file=sys.stderr)

self.tmpdir = tempfile.TemporaryDirectory(prefix="pypdfium2_artifact_stash_")
Expand Down

0 comments on commit d4fd2e4

Please sign in to comment.