aboutsummaryrefslogtreecommitdiff
blob: 1fcd043455d5194339e310971b8622a75d498fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

import copy
from portage.util.SlotObject import SlotObject

class AbstractDepPriority(SlotObject):
	__slots__ = ("buildtime", "buildtime_slot_op",
		"runtime", "runtime_post", "runtime_slot_op")

	def __lt__(self, other):
		return self.__int__() < other

	def __le__(self, other):
		return self.__int__() <= other

	def __eq__(self, other):
		return self.__int__() == other

	def __ne__(self, other):
		return self.__int__() != other

	def __gt__(self, other):
		return self.__int__() > other

	def __ge__(self, other):
		return self.__int__() >= other

	def copy(self):
		return copy.copy(self)