mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 11:47:28 +01:00
Fix optional_depends not being validated
This commit is contained in:
parent
b05bd78e20
commit
6e93e6d777
@ -140,7 +140,7 @@ class PackageTreeNode:
|
|||||||
|
|
||||||
|
|
||||||
def checkDependencies(deps):
|
def checkDependencies(deps):
|
||||||
for dep in result["depends"]:
|
for dep in deps:
|
||||||
if not basenamePattern.match(dep):
|
if not basenamePattern.match(dep):
|
||||||
if " " in dep:
|
if " " in dep:
|
||||||
raise MinetestCheckError("Invalid dependency name '{}' for mod at {}, did you forget a comma?" \
|
raise MinetestCheckError("Invalid dependency name '{}' for mod at {}, did you forget a comma?" \
|
||||||
|
Loading…
Reference in New Issue
Block a user