Bug 2322 - qlogin ne fonctionne pas sur physix
- now sge uses ssh mode for qlogin (it was the case on simpatix too but it wasn't yet scripted). qlogin using ssh works provided the ports are open. - also set qsh and qrsh to use ssh mode to be consistent. (although not tested yet)
This commit is contained in:
parent
c4cf33ac38
commit
879b559db6
11
version.py
11
version.py
|
@ -24,6 +24,9 @@ class Version(object):
|
|||
return False
|
||||
return True
|
||||
|
||||
def __lt__(self, other):
|
||||
return other.__gt__(self)
|
||||
|
||||
def __gt__(self, other):
|
||||
for i in range(max(len(self.numbers), len(other.numbers))):
|
||||
if self.get_number(i) < other.get_number(i):
|
||||
|
@ -32,6 +35,12 @@ class Version(object):
|
|||
return True
|
||||
# if numbers ar equal continue to next version number
|
||||
return False # numbers are equal
|
||||
|
||||
|
||||
def __ge__(self, other):
|
||||
return self.__gt__(other) or self.__eq__(other)
|
||||
|
||||
def __le__(self, other):
|
||||
return self.__lt__(other) or self.__eq__(other)
|
||||
|
||||
def __str__(self):
|
||||
return '.'.join([str(n) for n in self.numbers])
|
||||
|
|
Loading…
Reference in New Issue