OpenSSH-portable patch level 1 now considered equivalent to stock OpenBSD version.

This commit is contained in:
Joe Testa
2020-10-20 13:17:32 -04:00
parent 17780ff194
commit 240b705d61
2 changed files with 4 additions and 1 deletions

View File

@ -90,6 +90,9 @@ class Software:
opatch = mx1.group(1)
if mx2 is not None:
spatch = mx2.group(1)
# OpenBSD version and p1 versions are considered the same.
if ((spatch == '') and (opatch == '1')) or ((spatch == '1') and (opatch == '')):
return 0
if spatch < opatch:
return -1
elif spatch > opatch: