minetest / contentdb

A content database for Minetest mods, games, and more
https://content.minetest.net
GNU Affero General Public License v3.0
95 stars 46 forks source link

Too easy to end up installing older versions #499

Open rubenwardy opened 9 months ago

rubenwardy commented 9 months ago

Problem

It's not uncommon for releases to look like this:

The version 0.8 is unlikely to support 5.8 when later versions don't. The user has set the max version to 5.7 only on newer versions

Solutions

Warr1024 commented 9 months ago

Another possibility is just to infer max of any release as being equal to the max of the first release after it that defined a max, so in this case you would infer that 0.8 was actually 5.1 - 5.7.

After identifying the latest candidate version, you can just search for the first release where max_version is not null order by release ID.