buildorder.py: fix subpackage definition

This commit is contained in:
Ivan Max 2023-09-02 12:20:16 +03:00 committed by GitHub
parent 1200f3db84
commit 41a9eb20f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,8 @@ class TermuxSubPackage:
raise Exception("SubPackages should have a parent")
self.name = os.path.basename(subpackage_file_path).split('.subpackage.sh')[0]
if "gpkg" in subpackage_file_path.split("/")[-3].split("-") and "glibc" not in self.name.split("-"):
self.name += "-glibc"
self.parent = parent
self.deps = set([parent.name])
self.excluded_arches = set()