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

pmb.parse._apkbuild: parse provider_priority as int

parent fe04b6f8
No related branches found
No related tags found
No related merge requests found
......@@ -493,6 +493,7 @@ apkbuild_package_attributes = {
"pkgdesc": {},
"depends": {"array": True},
"provides": {"array": True},
"provider_priority": {"int": True},
"install": {"array": True},
# UI meta-packages can specify apps in "_pmb_recommends" to be explicitly
......
......@@ -209,6 +209,11 @@ def _parse_attributes(path, lines, apkbuild_attributes, ret):
if options.get("array", False):
# Split up arrays, delete empty strings inside the list
ret[attribute] = list(filter(None, ret[attribute].split(" ")))
if options.get("int", False):
if ret[attribute]:
ret[attribute] = int(ret[attribute])
else:
ret[attribute] = 0
def _parse_subpackage(path, lines, apkbuild, subpackages, subpkg):
......
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