flatpak-external-data-checker icon indicating copy to clipboard operation
flatpak-external-data-checker copied to clipboard

mangling versions

Open umlaeute opened this issue 2 years ago • 3 comments

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?

umlaeute avatar Aug 09 '23 10:08 umlaeute

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?

wjt avatar Aug 09 '23 12:08 wjt

upstream is https://github.com/pure-data/pure-data/

umlaeute avatar Aug 09 '23 14:08 umlaeute

Can you share the Flatpak builder manifest you're working on?

wjt avatar Aug 09 '23 14:08 wjt