def matches(self, prv): if not isinstance(prv, ArchProvides) and type(prv) is not Provides: return False if not self.version or not prv.version: return True return checkdep(prv.version, self.relation, self.version)
def matches(self, relation, version): if not relation: return True return checkdep(self.version, relation, version)