diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/audit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/audit.py b/lib/spack/spack/audit.py index 1075822de7..e090ff251f 100644 --- a/lib/spack/spack/audit.py +++ b/lib/spack/spack/audit.py @@ -298,7 +298,8 @@ def _check_build_test_callbacks(pkgs, error_cls): def _check_patch_urls(pkgs, error_cls): """Ensure that patches fetched from GitHub have stable sha256 hashes.""" github_patch_url_re = ( - r"^https?://github\.com/.+/.+/(?:commit|pull)/[a-fA-F0-9]*.(?:patch|diff)" + r"^https?://(?:patch-diff\.)?github(?:usercontent)?\.com/" + ".+/.+/(?:commit|pull)/[a-fA-F0-9]*.(?:patch|diff)" ) errors = [] |