repology / repology-updater

Repology backend service to update repository and package data
https://repology.org
GNU General Public License v3.0
497 stars 175 forks source link

Make version setting in PackageMaker more straightforward #911

Open AMDmi3 opened 5 years ago

AMDmi3 commented 5 years ago

Currently, we have set_version() which sets version, origversion and rawversion with optional normalization of the former two and set_rawversion() which sets the latter. It's unobvious and does not allow setting version while leaving rawversion untouched. We can do with more straightforward setters and filling missing fields in unwrap(). Related to #817.

AMDmi3 commented 5 years ago

Can also introduce extra setter (set_normalized_version()?) which takes normalizer and fills both version and rawversion.