ronoaldo / minetools

Utilities for Minetest server management
GNU Lesser General Public License v2.1
19 stars 1 forks source link

Use ContentDB's dependencies API #10

Open rollerozxa opened 5 months ago

rollerozxa commented 5 months ago

The CDB API provides an endpoint for retrieving the dependencies of a package along with potential providers for it in packages including games and modpacks, e.g. https://content.minetest.net/api/packages/apercy/automobiles_pck/dependencies/

This would make it easier to retrieve the dependencies of packages such as modpacks and also resolve the dependencies by installing the other dependencies found as packages on ContentDB.

ronoaldo commented 5 months ago

Hi! Thanks for the message! This looks promising - I wasn't aware there were an dependency endpoint. That indeed makes a lot of sense!