Better handeling of missing props.

This commit is contained in:
Sleepy Monax 2022-07-08 19:10:27 +02:00
parent 59cec04d0e
commit 9638d9d685

View file

@ -31,7 +31,8 @@ def filter(manifests: dict, target: dict) -> dict:
if "requires" in manifest:
for req in manifest["requires"]:
if not target["props"][req] in manifest["requires"][req]:
if not req in target["props"] or \
not target["props"][req] in manifest["requires"][req]:
accepted = False
break