pmbootstrap-meow/pmb/build
Caleb Connolly a72a60f546
core: pkgrepo: support arbitrarily named pmaports directories (MR 2470)
There was an oversight when this API was originally created and it
implicitly assumed that the pmaports repository was always named
"pmaports". This unfortunately broke some peoples workflows.

Introduce a new "pkgrepo_name()" function and adjust the codebase to use
it, as well as adjusting pkgrepo internally to special case the
"pmaports" repo so that it's always named pmaports no matter what the
directory itself is named.

This is probably more complexity than we should be dealing with here, we
should probably create a new type to encode this behaviour.

Fixes: #2412
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
2024-11-03 12:26:32 +01:00
..
__init__.py pmb.kconfig: refactor to remove args (MR 2346) 2024-10-22 00:04:32 +02:00
_package.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
autodetect.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
backend.py core: pkgrepo: support arbitrarily named pmaports directories (MR 2470) 2024-11-03 12:26:32 +01:00
checksum.py Auto-format codebase with ruff (MR 2325) 2024-06-23 15:40:13 +02:00
envkernel.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
init.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
kconfig.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
newapkbuild.py newapkbuild: globbing and Path fixes (MR 2416) 2024-09-30 18:58:37 +02:00
other.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00