forked from Mirror/pmbootstrap
build: package: add subpkg depends (MR 2377)
Recurse dependencies of subpackages too. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
f07ceca9c6
commit
6002a73329
1 changed files with 6 additions and 0 deletions
|
@ -82,6 +82,12 @@ def get_depends(context: Context, apkbuild):
|
|||
ret += apkbuild["checkdepends"]
|
||||
if not context.ignore_depends:
|
||||
ret += apkbuild["depends"]
|
||||
for subpkgname, subpkg in apkbuild["subpackages"].items():
|
||||
if not subpkg:
|
||||
continue
|
||||
logging.verbose(f"{apkbuild['pkgname']}: adding subpackage depends: {subpkgname}")
|
||||
ret += subpkg["depends"]
|
||||
|
||||
ret = sorted(set(ret))
|
||||
|
||||
# Don't recurse forever when a package depends on itself (#948)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue