Skip to content
Snippets Groups Projects
Commit 429fc858 authored by Eric Müller's avatar Eric Müller :mountain_bicyclist: Committed by Eleni Mathioulaki
Browse files

fix(BSS2): cache content when downloading oppulance first

parent f53dab33
No related branches found
No related tags found
2 merge requests!651create new experimental release,!650update spack version to v0.23.1
......@@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import unittest.mock
class Oppulance(Package):
......@@ -137,6 +138,15 @@ class Oppulance(Package):
expand=False,
)
# see build-brainscales package for a description; we need to duplicate
# here, as the cache content is shared between the two repositories
@when("@9:")
def do_fetch(self, mirror_only=False):
# in the configure step, we need access to all archived .git folders
def custom_archive(self, destination):
super(spack.fetch_strategy.GitFetchStrategy, self).archive(destination)
with unittest.mock.patch('spack.fetch_strategy.GitFetchStrategy.archive', new=custom_archive):
super().do_fetch(mirror_only)
def install(self, spec, prefix):
ln = which('ln')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment