Skip to content

Commit 15874c4

Browse files
committed
fix alpine
1 parent 749e06b commit 15874c4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

osv/third_party/univers/alpine.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,13 @@ def __gt__(self, other):
196196
if gentoo_vercmp == 0:
197197
return self.value[1] > other.value[1]
198198
return gentoo_vercmp > 0
199+
200+
def __le__(self, other):
201+
if not isinstance(other, self.__class__):
202+
return NotImplemented
203+
return not self.__gt__(other)
204+
205+
def __ge__(self, other):
206+
if not isinstance(other, self.__class__):
207+
return NotImplemented
208+
return not self.__lt__(other)

0 commit comments

Comments
 (0)