pmbootstrap: handle checkdepends (#1533)

This commit is contained in:
George Hopkins 2018-06-04 21:07:52 +02:00 committed by Oliver Smith
parent 30706a07c4
commit 5edabd4d17
3 changed files with 10 additions and 7 deletions

View file

@ -97,6 +97,8 @@ def get_depends(args, apkbuild):
"""
# Read makedepends and depends
ret = list(apkbuild["makedepends"])
if "!check" not in apkbuild["options"]:
ret += apkbuild["checkdepends"]
if "ignore_depends" not in args or not args.ignore_depends:
ret += apkbuild["depends"]
ret = sorted(set(ret))