buildorder.py: parse TERMUX_PKG_DEVPACKAGE_DEPENDS

This commit is contained in:
Tom Yan 2019-03-21 00:23:35 +08:00 committed by Leonid Pliushch
parent 95ada2d0ab
commit befdca1749

View File

@ -36,7 +36,7 @@ def parse_build_file_dependencies(path):
with open(path, encoding="utf-8") as build_script: with open(path, encoding="utf-8") as build_script:
for line in build_script: for line in build_script:
if line.startswith( ('TERMUX_PKG_DEPENDS', 'TERMUX_PKG_BUILD_DEPENDS', 'TERMUX_SUBPKG_DEPENDS') ): if line.startswith( ('TERMUX_PKG_DEPENDS', 'TERMUX_PKG_BUILD_DEPENDS', 'TERMUX_SUBPKG_DEPENDS', 'TERMUX_PKG_DEVPACKAGE_DEPENDS') ):
dependencies_string = line.split('DEPENDS=')[1] dependencies_string = line.split('DEPENDS=')[1]
for char in "\"'\n": for char in "\"'\n":
dependencies_string = dependencies_string.replace(char, '') dependencies_string = dependencies_string.replace(char, '')