summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/test/url_parse.py4
-rw-r--r--lib/spack/spack/url.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/test/url_parse.py b/lib/spack/spack/test/url_parse.py
index 2af7c6ae0b..effbb4b2c4 100644
--- a/lib/spack/spack/test/url_parse.py
+++ b/lib/spack/spack/test/url_parse.py
@@ -224,6 +224,10 @@ class UrlStripNameSuffixesTest(unittest.TestCase):
# Download version
+ def test_release(self):
+ self.check('cbench_release_1.3.0.tar.gz', '1.3.0',
+ 'cbench')
+
def test_snapshot(self):
self.check('gts-snapshot-121130', '121130',
'gts')
diff --git a/lib/spack/spack/url.py b/lib/spack/spack/url.py
index 736c0f2efd..8f2129b84a 100644
--- a/lib/spack/spack/url.py
+++ b/lib/spack/spack/url.py
@@ -258,6 +258,7 @@ def strip_name_suffixes(path, version):
'[._-]std',
# Download version
+ 'release',
'snapshot',
'distrib',