예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 def matches(self, relation, version):
     if not relation:
         return True
     return checkdep(self.version, relation, version)
예제 #4
0
 def matches(self, relation, version):
     if not relation:
         return True
     return checkdep(self.version, relation, version)