mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
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.
This commit is contained in:
parent
562b0ceffe
commit
d6b1adf613
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user