flatpak-external-data-checker
flatpak-external-data-checker copied to clipboard
mangling versions
upstream uses a mix of dots and dashes in their versions (otherwise following semver): ${major}.${minor}-${bugfix}.
though sometimes tags also use a more traditional ${major}.${minor}.${bugfix}.
Using a simple tag-pattern: "^([\\d.-]+)$", results in errors like:
: Can't compare 0.10.0 and 0.10-1: '<' not supported between instances of 'int' and 'str'
since only a single capture group in the regex is allowed: is there a way to mangle the version string in the regex (so i could replace all dashes with periods?
There is not.
Assuming this is a GitHub repo you're pulling from – or some other forge that has a REST API – you may have more luck using the JSON checker. Can you share the module in question?
upstream is https://github.com/pure-data/pure-data/
Can you share the Flatpak builder manifest you're working on?