Fix reimport not unapproving releases

This commit is contained in:
rubenwardy 2020-08-18 17:39:20 +01:00
parent f6ff5cba82
commit 1c4fe1b80c
2 changed files with 2 additions and 1 deletions

@ -125,6 +125,7 @@ def tags():
@bp.route("/todo/metapackages/")
@login_required
def metapackages():
mpackages = MetaPackage.query \
.filter(~ MetaPackage.packages.any(approved=True, soft_deleted=False)) \

@ -206,7 +206,7 @@ def postReleaseCheckUpdate(self, release, path):
# Raise error on unresolved game dependencies
if package.type == PackageType.GAME and len(depends) > 0:
deps = ", ".join(depends)
raise TaskError("Game has unresolved hard dependencies: " + deps)
raise MinetestCheckError("Game has unresolved hard dependencies: " + deps)
# Add dependencies
for meta in getMetaPackages(depends):