Fix version comparison and update tests.

This commit is contained in:
Andris Raugulis committed 2016-10-05 04:09:50 +03:00
1 parent 407ddbd7ea
commit 262c65b7be
2 files changed
+48 -3

No files matched your search

+1 -1
View File
@@ -506,7 +506,7 @@ class SSH(object):
if other is None:
return 1
if isinstance(other, self.__class__):
other = '{0}{1}'.format(other.version, other.patch)
other = '{0}{1}'.format(other.version, other.patch or '')
else:
other = str(other)
mx = re.match(r'^([\d\.]+\d+)(.*)$', other)