mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
Fix reimport not unapproving releases
This commit is contained in:
parent
f6ff5cba82
commit
1c4fe1b80c
@ -125,6 +125,7 @@ def tags():
|
|||||||
|
|
||||||
|
|
||||||
@bp.route("/todo/metapackages/")
|
@bp.route("/todo/metapackages/")
|
||||||
|
@login_required
|
||||||
def metapackages():
|
def metapackages():
|
||||||
mpackages = MetaPackage.query \
|
mpackages = MetaPackage.query \
|
||||||
.filter(~ MetaPackage.packages.any(approved=True, soft_deleted=False)) \
|
.filter(~ MetaPackage.packages.any(approved=True, soft_deleted=False)) \
|
||||||
|
@ -206,7 +206,7 @@ def postReleaseCheckUpdate(self, release, path):
|
|||||||
# Raise error on unresolved game dependencies
|
# Raise error on unresolved game dependencies
|
||||||
if package.type == PackageType.GAME and len(depends) > 0:
|
if package.type == PackageType.GAME and len(depends) > 0:
|
||||||
deps = ", ".join(depends)
|
deps = ", ".join(depends)
|
||||||
raise TaskError("Game has unresolved hard dependencies: " + deps)
|
raise MinetestCheckError("Game has unresolved hard dependencies: " + deps)
|
||||||
|
|
||||||
# Add dependencies
|
# Add dependencies
|
||||||
for meta in getMetaPackages(depends):
|
for meta in getMetaPackages(depends):
|
||||||
|
Loading…
Reference in New Issue
Block a user