From 898252fa6df76292d1db86e3974bcdd7bbd024da Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Fri, 17 Nov 2023 14:01:31 +0000 Subject: [PATCH] Update repo --- scripts/bin/revbump | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/bin/revbump b/scripts/bin/revbump index 3fe6bbeefd..80f28c12b9 100755 --- a/scripts/bin/revbump +++ b/scripts/bin/revbump @@ -45,7 +45,7 @@ def get_build_dependent_files(folders: list, DEP: str) -> list: """ Gets all the packages that depend on some package """ - build_files = [] + build_files = set() for d in folders: for folder in os.listdir(d): if os.path.exists(os.path.join(d, folder, "build.sh")): @@ -55,8 +55,14 @@ def get_build_dependent_files(folders: list, DEP: str) -> list: "TERMUX_PKG_BUILD_DEPENDS" ): if is_dep(DEP, line): - build_files.append(os.path.join(d, folder, "build.sh")) - file.close() + build_files.add(os.path.join(d, folder, "build.sh")) + for subfile_name in os.listdir(os.path.join(d, folder)): + if subfile_name.endswith(".subpackage.sh"): + with open(os.path.join(d, folder, subfile_name)) as file: + for line in file.read().split("\n"): + if line.startswith("TERMUX_SUBPKG_DEPENDS"): + if is_dep(DEP, line): + build_files.add(os.path.join(d, folder, "build.sh")) return build_files