Skip to content
Snippets Groups Projects
Commit 31d803b3 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 3142e852
No related branches found
No related tags found
No related merge requests found
......@@ -115,9 +115,12 @@ def _find_package_in_apkbuild(args, package, path):
if package in apkbuild["subpackages"]:
return True
# Search for provides in package
apkbuild_pkgs = [apkbuild]
# Search for provides in both package and subpackages
apkbuild_pkgs = [apkbuild, *apkbuild["subpackages"].values()]
for apkbuild_pkg in apkbuild_pkgs:
if not apkbuild_pkg:
continue
# Provides (cut off before equals sign for entries like
# "mkbootimg=0.0.1")
for provides_i in apkbuild_pkg["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