Support quiet mode for dist.

This commit is contained in:
Jelmer Vernooij 2021-03-01 18:20:21 +00:00
parent 354001c60a
commit 677358e0d5
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8
5 changed files with 79 additions and 28 deletions

View file

@ -75,6 +75,16 @@ class AptRequirement(Requirement):
def from_str(cls, text):
return cls(PkgRelation.parse_relations(text))
def pkg_relation_str(self):
return PkgRelation.str(self.relations)
def touches_package(self, package):
for rel in self.relations:
for entry in rel:
if entry['name'] == package:
return True
return False
def get_package_for_python_package(apt_mgr, package, python_version, specs=None):
if python_version == "pypy":