KSP-CKAN / NetKAN

Metadata files used by the NetKAN/CKAN indexer for KSP
Creative Commons Zero v1.0 Universal
72 stars 338 forks source link

Scatterer update not being picked up #3001

Closed Richard-Payne closed 8 years ago

Richard-Payne commented 8 years ago

I'm using CKAN v1.1.60-0-0g7206ce5.

Scatterer is being detected as version v0.02182 but there is a new version on KerbalStuff (v0.022). From what I can tell from the netkan file here, it should be picking up from KerbalStuff.

Any thoughts?

politas commented 8 years ago

2182 is larger than 22, so that's the latest version?

3004 fixes this, for now.

Richard-Payne commented 8 years ago

Yes, but they are not the version numbers. 0.022 is larger that 0.02182.

mheguy commented 8 years ago

The v in v0.022 denotes a version number, not a decimal number. The period (.) in version numbers does not denote a decimal place but a delimiter. Thus @politas was correct in comparing 022 to 02182 and not 0.022 to 0.02182

Richard-Payne commented 8 years ago

What you're saying would make some sense with multi-segment versions (2.3.4 for example) but decimal versions are not exactly uncommon either.

politas commented 8 years ago

Feel free to raise an issue detailing the clear rules under which CKAN should use decimal versioning rather than version number versioning. If you can come up with a good set of rules, we'd be delighted, since fixing this stuff is a pain.

politas commented 8 years ago

Let me be clear that we know you are right, and the author intends v0.022 to indicate a more recent version than v0.02182, but automatically deciding when to use decimal versioning is quite hard, and a simplistic rule will screw up on v0.10 releases far more often.