unhandled edge case: "-r0" in pkgver
(running pmbootstrap lint
)
(021364) [05:05:02] NOTE: Valid pkgvers are described here: https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#pkgver
(021364) [05:05:02] ERROR: Invalid pkgver '3.0.0_alpha369-r0' in APKBUILD: /home/lauren/pmbootstrap/cache_git/pmaports/main/dart-stage0/APKBUILD
(021364) [05:05:02] See also: <https://postmarketos.org/troubleshooting>
(021364) [05:05:02] Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pmb/__init__.py", line 63, in main
getattr(frontend, args.action)(args)
File "/usr/lib/python3.11/site-packages/pmb/helpers/frontend.py", line 606, in lint
pmb.helpers.lint.check(args, packages)
File "/usr/lib/python3.11/site-packages/pmb/helpers/lint.py", line 19, in check
pmb.chroot.apk.install(args, ["atools"])
File "/usr/lib/python3.11/site-packages/pmb/chroot/apk.py", line 232, in install
packages_with_depends = pmb.parse.depends.recurse(args, packages, suffix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pmb/parse/depends.py", line 141, in recurse
package = package_from_aports(args, pkgname_depend)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pmb/parse/depends.py", line 17, in package_from_aports
aport = pmb.helpers.pmaports.find(args, pkgname_depend, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pmb/helpers/pmaports.py", line 171, in find
if _find_package_in_apkbuild(package, path_current):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pmb/helpers/pmaports.py", line 112, in _find_package_in_apkbuild
apkbuild = pmb.parse.apkbuild(path)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pmb/parse/_apkbuild.py", line 328, in apkbuild
raise RuntimeError(f"Invalid pkgver '{ret['pkgver']}' in"
RuntimeError: Invalid pkgver '3.0.0_alpha369-r0' in APKBUILD: /home/lauren/pmbootstrap/cache_git/pmaports/main/dart-stage0/APKBUILD
imo this is an unhandled edge case that is documented in the linked reference. this pkgver is accepted by abuild/aports - I copied the package from aports git, you can currently see it here: https://pkgs.alpinelinux.org/packages?name=dart-stage0&branch=edge
Edited by lauren n. liberda