pmbootstrap should verify APKBUILD versions when parsing APKBUILDs
Created by: ollieparanoid
We already have a validation function, which we would only need to call after parsing an APKBUILD:
To keep it userfriendly, I suggest extending APKBUILD Reference#pkgver in Alpine's wiki to describe valid version strings (especially which suffixes are allowed) and linking to that page in the error message.
The reason this is marked as bug is, that we assume valid pkgvers at other points in the code, and when the version currently contains -r
, it will confuse pmbootstrap. @ata2001 reported:
it did not crash, but rebuilt the package every time, then installed the old version
We should also add a Travis CI testcase, that parses all APKBUILDs (in order to find broken pkgvers and problems with the parser). @MartijnBraam's PR #351 already does that afaik (so it might be worth getting that in first).