pmbootstrap-meow/pmb
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
..
aportgen helpers: apk_static: move from pmb.chroot (MR 2463) 2024-11-02 18:15:38 +01:00
build core: pkgrepo: support arbitrarily named pmaports directories (MR 2470) 2024-11-03 12:26:32 +01:00
chroot helpers: apk_static: move from pmb.chroot (MR 2463) 2024-11-02 18:15:38 +01:00
ci pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
commands commands: remove deviceinfo_parse (MR 2463) 2024-11-02 18:15:38 +01:00
config core: pkgrepo: support arbitrarily named pmaports directories (MR 2470) 2024-11-03 12:26:32 +01:00
core core: pkgrepo: support arbitrarily named pmaports directories (MR 2470) 2024-11-03 12:26:32 +01:00
data Replace gitlab.com with gitlab.postmarketos.org (MR 2443) 2024-10-21 18:12:21 +02:00
export pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
flasher pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
helpers core: pkgrepo: support arbitrarily named pmaports directories (MR 2470) 2024-11-03 12:26:32 +01:00
install pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
meta pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
netboot pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
parse pmb.parse.bootimg: Fall back to empty string if mtk properties don't exist (MR 2466) 2024-10-31 11:09:13 +01:00
qemu pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
sideload pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
__init__.py helpers: apk_static: move from pmb.chroot (MR 2463) 2024-11-02 18:15:38 +01:00
conftest.py test: parse: add test_deviceinfo (MR 2453) 2024-10-30 23:14:01 +01:00
types.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00