summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-07-18 22:48:39 -0500
committerGitHub <noreply@github.com>2017-07-18 22:48:39 -0500
commit5fc0243d3598f6e0f6b3206ccfb91012675c8c41 (patch)
tree31111d02ea78bc113589026937827f0c728db3e0
parentd1c199e15d59c4e8a6d1cb9eb825f153b7735390 (diff)
downloadspack-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.py2
-rw-r--r--lib/spack/spack/url.py1
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',