1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 11:29:46 +03:00
pmbootstrap/test/parse
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
..
test_apkindex.py pmb.parse.apkindex: account for provider_priority when locating packages 2025-05-13 19:19:00 +02:00
test_bootimg.py test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
test_deviceinfo.py test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
test_version.py test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00