Implement AptRequirement.__eq__.
This commit is contained in:
parent
c52ddccd17
commit
663f67574a
1 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,9 @@ class AptRequirement(Requirement):
|
|||
def pkg_relation_str(self):
|
||||
return PkgRelation.str(self.relations)
|
||||
|
||||
def __eq__(self, other):
|
||||
return isinstance(self, type(other)) and self.relations == other.relations
|
||||
|
||||
def __str__(self):
|
||||
return "apt requirement: %s" % self.pkg_relation_str()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue