-
- Downloads
core: pkgrepo: support arbitrarily named pmaports directories
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>
Showing
- pmb/build/backend.py 3 additions, 3 deletionspmb/build/backend.py
- pmb/config/pmaports.py 7 additions, 2 deletionspmb/config/pmaports.py
- pmb/core/pkgrepo.py 26 additions, 5 deletionspmb/core/pkgrepo.py
- pmb/helpers/git.py 5 additions, 2 deletionspmb/helpers/git.py
- pmb/helpers/lint.py 8 additions, 3 deletionspmb/helpers/lint.py
Loading
Please register or sign in to comment