summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2020-10-29 22:23:36 -0700
committerGitHub <noreply@github.com>2020-10-29 22:23:36 -0700
commit3a863020f0043c49c02b6b8eb35200e1dc078308 (patch)
treeae8949c380a3a96762e32ba1e1b020b5c937b4de /lib
parent52379d87fe7cf1db7389e1f00bde1c6563dae36f (diff)
downloadspack-3a863020f0043c49c02b6b8eb35200e1dc078308.tar.gz
spack-3a863020f0043c49c02b6b8eb35200e1dc078308.tar.bz2
spack-3a863020f0043c49c02b6b8eb35200e1dc078308.tar.xz
spack-3a863020f0043c49c02b6b8eb35200e1dc078308.zip
CI: disable vermin check for deprecated hash (#19612)
Spack has a fallback for hash checking with m55sums that may not be supported in earlier versions of Python 3.x. The comments in the Spack code acknowledge that this is best effort and may fail, but recent vermin checks (running as part of our CI) reject this. This disables vermin checks for that fallback.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/util/crypto.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/util/crypto.py b/lib/spack/spack/util/crypto.py
index 74a6ee06bd..7e264ff0c7 100644
--- a/lib/spack/spack/util/crypto.py
+++ b/lib/spack/spack/util/crypto.py
@@ -45,7 +45,8 @@ class DeprecatedHash(object):
" supported in future Spack releases."
.format(self.hash_alg))
if self.disable_security_check:
- return hashlib.new(self.hash_alg, usedforsecurity=False)
+ return hashlib.new( # novermin
+ self.hash_alg, usedforsecurity=False)
else:
return hashlib.new(self.hash_alg)