diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2021-05-21 09:53:56 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-02 23:58:19 +0000 |
commit | 69564b219da39afa1143009db4e9c58d21e337fb (patch) | |
tree | 3139e6ca64d5a835409c6ea91d5b4bbaa9f0b49b /buildscripts/blackduck_hub.py | |
parent | d9ac430abdc7958dd8b3acd8dfc25a86d31e6df5 (diff) | |
download | mongo-69564b219da39afa1143009db4e9c58d21e337fb.tar.gz |
SERVER-56966 blackduck - Handle incorrect yaml-cpp and boost versions
(cherry picked from commit 361d2c6b97d2e0c3cc80040e2cf555e68d185952)
Diffstat (limited to 'buildscripts/blackduck_hub.py')
-rw-r--r-- | buildscripts/blackduck_hub.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/buildscripts/blackduck_hub.py b/buildscripts/blackduck_hub.py index d587077af60..f32c5f99890 100644 --- a/buildscripts/blackduck_hub.py +++ b/buildscripts/blackduck_hub.py @@ -476,6 +476,22 @@ class Component: if name == "Mozilla Firefox": versions = [ver for ver in versions if "esr" in ver] + # For yaml-cpp, we need to clean the list of versions a little + # yaml-cpp uses #.#.# but there are some entires with #.#.#.# so the later needs to + # be filtered out. + if name == "jbeder/yaml-cpp": + ver_regex = re.compile(r"\d+\.\d+\.\d+$") + versions = [ver for ver in versions if ver_regex.match(ver)] + + # For Boost C++ Libraries - boost, we need to clean the list of versions a little + # All boost versions for the last 10 years start with 1.x.x. Black Duck thinks some + # versions are 4.x.x which are bogus and throw off the sorting. + # Also, boost uses #.#.# but there are some entires with #.#.#.# so the later needs to + # be filtered out. + if name == "Boost C++ Libraries - boost": + ver_regex = re.compile(r"\d+\.\d+\.\d+$") + versions = [ver for ver in versions if ver.startswith("1") and ver_regex.match(ver)] + ver_info = [VersionInfo(ver) for ver in versions] ver_info = [ver for ver in ver_info if ver.production_version] LOGGER.info("Filtered versions: %s ", ver_info) |