1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

pmb.helpers.lint: fix keyerror (MR 2397)

repo is a Path obj now, and its name is used as a key in the dest_paths dict.

Fixes this failure:

    working_dir=dest_paths[repo],
                ~~~~~~~~~~^^^^^^
KeyError: PosixPath('/home/clayton/src/pmaports')
This commit is contained in:
Clayton Craft 2024-09-06 16:34:31 -07:00
parent 36c86cd971
commit 9131b910c7
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -63,6 +63,6 @@ def check(pkgnames: Sequence[str]):
check=False,
output="stdout",
output_return=True,
working_dir=dest_paths[repo],
working_dir=dest_paths[repo.name],
env={"CUSTOM_VALID_OPTIONS": " ".join(options)},
)