mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-31 18:27:30 +01:00
Revert "Remove error on game missing hard deps"
This reverts commit aff20f1a6d22f25c7286b3625b7379c9dae7a5da.
This commit is contained in:
parent
52437d4e2e
commit
fb2f71e1dc
@ -97,6 +97,11 @@ def postReleaseCheckUpdate(self, release, path):
|
||||
depends.discard(mod)
|
||||
optional_depends.discard(mod)
|
||||
|
||||
# Raise error on unresolved game dependencies
|
||||
if package.type == PackageType.GAME and len(depends) > 0:
|
||||
deps = ", ".join(depends)
|
||||
raise MinetestCheckError("Game has unresolved hard dependencies: " + deps)
|
||||
|
||||
# Add dependencies
|
||||
for meta in getMetaPackages(depends):
|
||||
db.session.add(Dependency(package, meta=meta, optional=False))
|
||||
|
Loading…
Reference in New Issue
Block a user