Skip to content

Commit

Permalink
oce: fix fetching (#2921)
Browse files Browse the repository at this point in the history
* oce: fix fetching

apparently the fetcher is confused when there is a mixture of 3-digits
versions and 2-digits versions, i.e. 0.18 and 0.17.2

* flake8
  • Loading branch information
davydden authored and tgamblin committed Jan 26, 2017
1 parent 1ddd9c7 commit c24dc90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion var/spack/repos/builtin/packages/oce/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class Oce(Package):
Open CASCADE library.
"""
homepage = "https://github.com/tpaviot/oce"
url = "https://github.com/tpaviot/oce/archive/OCE-0.18.tar.gz"

version('0.18', '226e45e77c16a4a6e127c71fefcd171410703960ae75c7ecc7eb68895446a993')
version('0.17.2', 'bf2226be4cd192606af677cf178088e5')
Expand All @@ -47,6 +46,10 @@ class Oce(Package):
depends_on('cmake@2.8:', type='build')
depends_on('tbb', when='+tbb')

def url_for_version(self, version):
return 'https://github.com/tpaviot/oce/archive/OCE-%s.tar.gz' % (
version.dotted)

# There is a bug in OCE which appears with Clang (version?) or GCC 6.0
# and has to do with compiler optimization, see
# https://github.com/tpaviot/oce/issues/576
Expand Down

0 comments on commit c24dc90

Please sign in to comment.