Skip to content

Fix #342: don't use distutils.version.LooseVersion anymore

postmarketOS Bot requested to merge fix/342-version-checking into master

Created by: ollieparanoid

Previously, distutils.version.LooseVersion was used, because it was sort of close enough to how Alpine parses versions.

This new version uses the exact same algorithm, as apk does, and it passes all of apk's testcases for version checking (previously we simply skipped the ones, that did not pass).

One proper review + test is enough.

Merge request reports