forked from Mirror/pmbootstrap
parse.apkbuild.parse_subpackage: don't inherit pmb_recommends
Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20240102074605.23248-1-clayton@craftyguy.net%3E
This commit is contained in:
parent
e223fd03eb
commit
0c0f05caab
1 changed files with 6 additions and 0 deletions
|
@ -271,6 +271,12 @@ def _parse_subpackage(path, lines, apkbuild, subpackages, subpkg):
|
||||||
# Copy variables
|
# Copy variables
|
||||||
apkbuild = apkbuild.copy()
|
apkbuild = apkbuild.copy()
|
||||||
apkbuild["subpkgname"] = subpkgname
|
apkbuild["subpkgname"] = subpkgname
|
||||||
|
# Don't inherit pmb_recommends from the top-level package.
|
||||||
|
# There are two reasons for this:
|
||||||
|
# 1) the subpackage may specify its own pmb_recommends
|
||||||
|
# 2) the top-level package may list the subpackage as a pmb_recommends,
|
||||||
|
# thereby creating a circular dependency
|
||||||
|
apkbuild["_pmb_recommends"] = ""
|
||||||
|
|
||||||
# Parse relevant attributes for the subpackage
|
# Parse relevant attributes for the subpackage
|
||||||
_parse_attributes(
|
_parse_attributes(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue