Add ability to not include optional deps in deps API

This commit is contained in:
rubenwardy 2020-06-05 04:44:39 +01:00
parent c3cef1eed6
commit 064eb9df04

@ -58,7 +58,12 @@ def package(package):
def package_dependencies(package):
ret = []
include_optional = request.args.get("include_optional", True)
for dep in package.dependencies:
if not include_optional and dep.option:
continue
name = None
fulfilled_by = None