build-package.sh: allow static packages to be in dependencies

This commit is contained in:
Leonid Plyushch 2019-08-12 22:48:55 +03:00
parent 520b56a7b0
commit e51d6cf5df
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ class TermuxPackage(object):
self.deps.add(subpkg.name)
self.deps |= subpkg.deps
subpkg = TermuxSubPackage(self.dir + '/' + self.name + '-static' + '.subpackage.sh', self, virtual=True)
self.subpkgs.append(subpkg)
# Do not depend on itself
self.deps.discard(self.name)
# Do not depend on any sub package