Improve version detection for URLs with dynamic after version (#4902)

This commit is contained in:
Adam J. Stewart 2017-07-26 17:43:54 -05:00 committed by GitHub
parent 6e99e2c58e
commit b33f92da34
2 changed files with 4 additions and 1 deletions

View file

@ -107,7 +107,9 @@
# Combinations of multiple patterns - public
('dakota-6.3-public.src', 'dakota-6.3'),
# Combinations of multiple patterns - universal
('synergy-1.3.6p2-MacOSX-Universal', 'synergy-1.3.6p2')
('synergy-1.3.6p2-MacOSX-Universal', 'synergy-1.3.6p2'),
# Combinations of multiple patterns - dynamic
('snptest_v2.5.2_linux_x86_64_dynamic', 'snptest_v2.5.2'),
])
def test_url_strip_version_suffixes(url, expected):
stripped = strip_version_suffixes(url)

View file

@ -177,6 +177,7 @@ def strip_version_suffixes(path):
'[Uu]niversal',
'jar',
'complete',
'dynamic',
'oss',
'gem',
'tar',