diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-07-18 22:48:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-18 22:48:39 -0500 |
commit | 5fc0243d3598f6e0f6b3206ccfb91012675c8c41 (patch) | |
tree | 31111d02ea78bc113589026937827f0c728db3e0 | |
parent | d1c199e15d59c4e8a6d1cb9eb825f153b7735390 (diff) | |
download | spack-5fc0243d3598f6e0f6b3206ccfb91012675c8c41.tar.gz spack-5fc0243d3598f6e0f6b3206ccfb91012675c8c41.tar.bz2 spack-5fc0243d3598f6e0f6b3206ccfb91012675c8c41.tar.xz spack-5fc0243d3598f6e0f6b3206ccfb91012675c8c41.zip |
Improve version detection of release versions (#4816)
-rw-r--r-- | lib/spack/spack/test/url_parse.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/url.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/test/url_parse.py b/lib/spack/spack/test/url_parse.py index 5b24821a28..6789bc0aa3 100644 --- a/lib/spack/spack/test/url_parse.py +++ b/lib/spack/spack/test/url_parse.py @@ -57,6 +57,8 @@ from spack.url import * ('gromacs-4.6.1-tar', 'gromacs-4.6.1'), # Download type - sh ('Miniconda2-4.3.11-Linux-x86_64.sh', 'Miniconda2-4.3.11'), + # Download version - release + ('v1.0.4-release', 'v1.0.4'), # Download version - stable ('libevent-2.0.21-stable', 'libevent-2.0.21'), # Download version - final diff --git a/lib/spack/spack/url.py b/lib/spack/spack/url.py index 88557596fd..d29ce3d07f 100644 --- a/lib/spack/spack/url.py +++ b/lib/spack/spack/url.py @@ -183,6 +183,7 @@ def strip_version_suffixes(path): 'sh', # Download version + 'release', 'stable', '[Ff]inal', 'rel', |