diff options
Diffstat (limited to 'portage_with_autodep/pym/_emerge/Blocker.py')
-rw-r--r-- | portage_with_autodep/pym/_emerge/Blocker.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/portage_with_autodep/pym/_emerge/Blocker.py b/portage_with_autodep/pym/_emerge/Blocker.py new file mode 100644 index 0000000..9304606 --- /dev/null +++ b/portage_with_autodep/pym/_emerge/Blocker.py @@ -0,0 +1,15 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +from _emerge.Task import Task + +class Blocker(Task): + + __hash__ = Task.__hash__ + __slots__ = ("root", "atom", "cp", "eapi", "priority", "satisfied") + + def __init__(self, **kwargs): + Task.__init__(self, **kwargs) + self.cp = self.atom.cp + self._hash_key = ("blocks", self.root, self.atom, self.eapi) + self._hash_value = hash(self._hash_key) |