diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2021-06-17 10:46:43 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-17 16:07:55 +0000 |
commit | 79e1edbc91340557b945df370b2d42f0a5d641db (patch) | |
tree | 44731cd63ff53505eeb6d45cef01b400b2aade6c /buildscripts/blackduck_hub.py | |
parent | ba81849df916f6c417585c6cd51e6508be5001fe (diff) | |
download | mongo-79e1edbc91340557b945df370b2d42f0a5d641db.tar.gz |
SERVER-57631 Fix blackduck parser for yhirose/cpp-peglib
Diffstat (limited to 'buildscripts/blackduck_hub.py')
-rw-r--r-- | buildscripts/blackduck_hub.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/buildscripts/blackduck_hub.py b/buildscripts/blackduck_hub.py index 700834c6ec3..bdab210a43a 100644 --- a/buildscripts/blackduck_hub.py +++ b/buildscripts/blackduck_hub.py @@ -338,11 +338,16 @@ class VersionInfo: # yaml-cpp has this problem where Black Duck sourced the wrong version information self.ver_str = self.ver_str.replace("-", ".") + # If we trimmed the string to nothing, treat it as a beta version + if self.ver_str == '': + self.production_version = False + return + # Versions are generally a multi-part integer tuple self.ver_array = [int(part) for part in self.ver_str.split(".")] except: - LOGGER.error("Failed to parse version '%s', exception", ver_str) + LOGGER.error("Failed to parse version '%s' as '%s', exception", ver_str, self.ver_str) raise def __repr__(self): |