pmbootstrap/pmb
Oliver Smith 8b8f25227f
pmb.helpers.pmaports.get: deal with operators
Fix that APKBUILDs mentioning other packages with an operator could not
be found. As we are building the initial branch of v23.12, this
currently happens with postmarketos-mkinitfs: it depends on
devicepkg-utils>=0.2.0 and currently pmbootstrap will only remove the
>=0.2.0 when looking for the pkgname in the APKINDEX of binary packages
(which is why it works on master). But it does not yet do that when
looking for the pkgname in pmaports.

Move the code for stripping the operator to a common place and use it
for getting packages from pmaports too.

Change the order of operators while at it, try to find <= before =, as
otherwise it would cut off example<=1.2.3 as "example<" instead of
"example".

Reviewed-by: Caleb Connolly <kc@postmarketos.org> (via chat)
2023-11-29 22:31:11 +01:00
..
aportgen parse.bootimg: Separate kernel and ramdisk MediaTek headers 2023-11-13 09:30:24 +01:00
build pkg resolve: add more verbose logs 2023-11-26 11:02:07 +01:00
chroot chroot.apk,apk_static: always disable interactive mode 2023-11-13 09:30:30 +01:00
ci Use ruff for linting 2023-06-04 10:56:22 +02:00
config pmb.config.apk_tools_min_version: add alpine 3.19 2023-11-28 20:42:33 +01:00
data init: allow all locales 2023-06-12 08:46:22 +02:00
export install: rename --sdcard arg to --disk 2023-11-19 20:27:37 +01:00
flasher Add mtkclient as a flasher option 2023-07-13 10:07:53 +02:00
helpers pmb.helpers.pmaports.get: deal with operators 2023-11-29 22:31:11 +01:00
install install: rename --sdcard arg to --disk 2023-11-19 20:27:37 +01:00
netboot chroot: /mnt/pmbootstrap-* -> /mnt/pmbootstrap/* 2023-08-14 09:52:17 +02:00
parse pmb.helpers.pmaports.get: deal with operators 2023-11-29 22:31:11 +01:00
qemu treewide: fix typos found with codespell 2023-07-13 10:07:53 +02:00
sideload pmb.helpers.run_core: move flat_cmd here 2023-07-21 08:54:04 +02:00
__init__.py Prepare 2.0.0 release 2023-08-01 07:51:02 +02:00