pmbootstrap-meow/pmb/helpers
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 Bump copyright to 2023 2023-01-22 19:18:06 +01:00
apk.py helpers: apk: sanity check final command (MR 2463) 2024-11-02 18:15:39 +01:00
apk_static.py helpers: apk_static: move from pmb.chroot (MR 2463) 2024-11-02 18:15:38 +01:00
aportupgrade.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
args.py helpers: logging: reduce the risk of a cyclical import (MR 2463) 2024-11-02 18:15:38 +01:00
cli.py Auto-format codebase with ruff (MR 2325) 2024-06-23 15:40:13 +02:00
devices.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
exceptions.py Auto-format codebase with ruff (MR 2325) 2024-06-23 15:40:13 +02:00
file.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
frontend.py commands: remove deviceinfo_parse (MR 2463) 2024-11-02 18:15:38 +01:00
git.py core: pkgrepo: support arbitrarily named pmaports directories (MR 2470) 2024-11-03 12:26:32 +01:00
http.py pmb.helpers.repo.download: proper error for 404 (MR 2462) 2024-10-27 20:52:13 +01:00
lint.py core: pkgrepo: support arbitrarily named pmaports directories (MR 2470) 2024-11-03 12:26:32 +01:00
logging.py helpers: logging: reduce the risk of a cyclical import (MR 2463) 2024-11-02 18:15:38 +01:00
mount.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
other.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
package.py pmb.parse.apkindex: Introduce proper typing (MR 2425) 2024-10-13 20:12:34 +02:00
pkgrel_bump.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
pmaports.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
repo.py chroot: apk: use apk.static in all cases (MR 2463) 2024-11-02 18:15:38 +01:00
repo_missing.py pmb.parse.apkindex: Introduce proper typing (MR 2425) 2024-10-13 20:12:34 +02:00
run.py helpers: run: stop handling Arch in PathString (MR 2463) 2024-11-02 18:15:39 +01:00
run_core.py helpers: run: stop handling Arch in PathString (MR 2463) 2024-11-02 18:15:39 +01:00
status.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
toml.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
ui.py pmb.helpers.ui.check_option: fix for UI = none (MR 2348) 2024-07-05 00:48:52 +02:00