Skip to content
Snippets Groups Projects
Commit f1ac5c5d authored by Minecrell's avatar Minecrell
Browse files

pmb.helpers.pmaports: search for provides in both root and subpackages

At the moment, "provides" are only checked in the root package and not
in subpackages of APKBUILDs. Fix this by looking through the subpackages
as well.
parent 6df64f1c
No related branches found
No related tags found
No related merge requests found
......@@ -116,9 +116,12 @@ def _find_package_in_apkbuild(args, package, path):
if package in apkbuild["subpackages"]:
return True
# Search for provides in package
apkpkgs = [apkbuild]
# Search for provides in both package and subpackages
apkpkgs = [apkbuild, *apkbuild["subpackages"].values()]
for apkpkg in apkpkgs:
if not apkpkg:
continue
# Provides (cut off before equals sign for entries like
# "mkbootimg=0.0.1")
for provides_i in apkpkg["provides"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment