diff options
-rw-r--r-- | pym/portage/dep.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py index 23b26a3cb..3d3b5d954 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -440,6 +440,15 @@ class Atom(object): else: self.use = None + def __cmp__(self, other): + self_str = str(self) + other_str = str(other) + if self_str == other_str: + return 0 + if self_str > other_str: + return 1 + return -1 + def get_operator(mydep): """ Return the operator used in a depstring. |