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

This commit is contained in:
Leonid Pliushch 2019-08-12 22:48:55 +03:00
parent 69d1beee31
commit b7ace4093d

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