Closed Wuzzy2 closed 2 years ago
This only happens with old uploads. New uploads will have the mod folder. I haven't been especially motivated to write code to migrate the old uploads to this form.
To implement this migration, you'd need to:
repack_archive(path: str, modname: str) -> Void
. It should edit the zip file in-place to make it conform to this format. If it already matches the form, it shouldn't edit the file. I suggest putting this in app/tasks/importtasks.py
app/tasks/importtasks.py
called repack_release
that wraps this util function. Add an admin option (app/blueprints/admin) to run the celery task on all package releases.repack_archive
on the zip upload taskOK, so how can I manually update my old packages?
You'll need to create a new release
Problem
If you click the download link of a mod in the website, you only get the contents of the mod folder, not the mod folder itself. This is annoying when extracting the mod and also violates forum rules for the Mod Releases subforum.
Example (to reproduce)
https://content.minetest.net/packages/Wuzzy/calendar/
Solution
Make it so the download link on the ContentDB website includes the Zip with the mod folder. The folder name could be based on mod.conf.
Thanks for reading.