Fix version parsing for cistem package (#9260)
Adds 'code' to the list of suffixes that are excluded from version parsing of URLs, such that if a URL contains the string 'cistem-1.0.0-beta-source-code', a version X will substitute in to produce a URL with cistem-X-source-code ('source' was already excluded). The 'cistem' package version is updated to make use of this (and fix a fetching bug with the cistem package). A unit test is added to check this parsing case.
This commit is contained in:
parent
467d501060
commit
133dd7a4ac
@ -43,6 +43,8 @@
|
|||||||
('jpegsrc.v9b', 'jpegsrc.v9b'),
|
('jpegsrc.v9b', 'jpegsrc.v9b'),
|
||||||
('turbolinux702', 'turbolinux702'),
|
('turbolinux702', 'turbolinux702'),
|
||||||
('converge_install_2.3.16', 'converge_install_2.3.16'),
|
('converge_install_2.3.16', 'converge_install_2.3.16'),
|
||||||
|
# Download type - code, source
|
||||||
|
('cistem-1.0.0-beta-source-code', 'cistem-1.0.0-beta'),
|
||||||
# Download type - src
|
# Download type - src
|
||||||
('apache-ant-1.9.7-src', 'apache-ant-1.9.7'),
|
('apache-ant-1.9.7-src', 'apache-ant-1.9.7'),
|
||||||
('go1.7.4.src', 'go1.7.4'),
|
('go1.7.4.src', 'go1.7.4'),
|
||||||
|
@ -169,6 +169,7 @@ def strip_version_suffixes(path):
|
|||||||
# Download type
|
# Download type
|
||||||
'[Ii]nstall',
|
'[Ii]nstall',
|
||||||
'all',
|
'all',
|
||||||
|
'code',
|
||||||
'src(_0)?',
|
'src(_0)?',
|
||||||
'[Ss]ources?',
|
'[Ss]ources?',
|
||||||
'file',
|
'file',
|
||||||
|
@ -34,7 +34,7 @@ class Cistem(AutotoolsPackage):
|
|||||||
homepage = "https://cistem.org/"
|
homepage = "https://cistem.org/"
|
||||||
url = "https://cistem.org/system/tdf/upload3/cistem-1.0.0-beta-source-code.tar.gz?file=1&type=cistem_details&id=37&force=0"
|
url = "https://cistem.org/system/tdf/upload3/cistem-1.0.0-beta-source-code.tar.gz?file=1&type=cistem_details&id=37&force=0"
|
||||||
|
|
||||||
version('1.0.0', '479f395b30ad630df3cbba9c56eb29c2')
|
version('1.0.0-beta', '479f395b30ad630df3cbba9c56eb29c2')
|
||||||
|
|
||||||
depends_on('wx@3.0.2')
|
depends_on('wx@3.0.2')
|
||||||
depends_on('fftw')
|
depends_on('fftw')
|
||||||
|
Loading…
Reference in New Issue
Block a user