From d6b1adf613000be4fe867f03002f484132971029 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 8 Aug 2021 20:43:52 +0100 Subject: [PATCH] Disable package name validation on modpacks Whilst modpacks providing an incorrect name in `modpack.conf` is wrong, it doesn't actually matter as ContentDB will correct it after installation. --- app/tasks/importtasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index 58ae1faa..80f0f6fa 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -75,7 +75,7 @@ def postReleaseCheckUpdate(self, release: PackageRelease, path): tree = build_tree(path, expected_type=ContentType[release.package.type.name], author=release.package.author.username, name=release.package.name) - if tree.name is not None and release.package.name != tree.name: + if tree.name is not None and release.package.name != tree.name and tree.type == ContentType.MOD: raise MinetestCheckError(f"Expected {tree.relative} to have technical name {release.package.name}, instead has name {tree.name}") cache = {}