1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00
pmbootstrap/test
Pablo Correa Gómez ba6bb4272d
pmb.parse.apkindex: account for provider_priority when locating packages
This fixes an issue where the local apk index has two packages in it
that provide the same thing, but this function was returning only the
one with the shortest name... which could be very bad :)

https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6475#note_480167

In the process, add tests for pmb.parse.apkindex.package function. Some of
the tests would fail without this patch, surfacing a bug where priorities
are not considered, but should, and that we are now fixing.

Co-authored-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2594
2025-05-13 19:19:00 +02:00
..
aportgen test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
chroot test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
config test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
core core: Arch: add method to map to Go arch (MR 2474) 2025-02-27 01:29:35 +01:00
data/tests test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
helpers test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
meta test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
parse pmb.parse.apkindex: account for provider_priority when locating packages 2025-05-13 19:19:00 +02:00
conftest.py test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
pytest.ini CI: drop support for cached venv + ci runner (MR 2080) 2021-07-04 22:51:53 +02:00