if ((numeric_components == [0, 9, 8] and components[2] >= '8y') or
(numeric_components == [1, 0, 0] and components[2] >= '0l') or
(numeric_components == [1, 0, 1] and components[2] >= '1g') or
- (numeric_components >= [1, 0, 2])):
+ (numeric_components == [1, 0, 2] and not components[2].startswith('2-beta')) or
+ (numeric_components >= [1, 0, 3])):
return
if numeric_components == [1, 0, 1] and components[2] >= '1d':
self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1e 7 Abc 2014"))
self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1e invalid_date"))
self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.1e 7 Apr"))
+ self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.2-beta1"))
self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 0.10"))
self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 0.10.0"))
self.failUnlessRaises(PackagingError, check_openssl_version, MockSSL("OpenSSL 1.0.0"))
check_openssl_version(MockSSL("OpenSSL 1.0.1zzz"))
check_openssl_version(MockSSL("OpenSSL 1.0.2"))
check_openssl_version(MockSSL("OpenSSL 1.0.2a"))
+ check_openssl_version(MockSSL("OpenSSL 1.0.3"))
check_openssl_version(MockSSL("OpenSSL 1.0.10a"))
check_openssl_version(MockSSL("OpenSSL 1.1"))
check_openssl_version(MockSSL("OpenSSL 1.1.0"))