From 6ec39b6c81aa7a9b5853170026492567dd2cb55b Mon Sep 17 00:00:00 2001 From: Peter Scheibel Date: Thu, 31 Oct 2019 12:56:38 -0700 Subject: [PATCH] Bugfix: BundlePackage staging/installation (#13524) 4af4487 added a mirror_id function to most FetchStrategy implementations that is used to calculate resource locations in mirrors. It left out BundleFetchStrategy which broke all packages making use of BundlePackage (e.g. xsdk). This adds a noop implementation of mirror_id to BundleFetchStrategy so that the download/installation of BundlePackages can proceed as normal. --- lib/spack/spack/fetch_strategy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py index 393e3af9d1..370ccef593 100644 --- a/lib/spack/spack/fetch_strategy.py +++ b/lib/spack/spack/fetch_strategy.py @@ -225,6 +225,9 @@ def source_id(self): """BundlePackages don't have a source id.""" return '' + def mirror_id(self): + """BundlePackages don't have a mirror id.""" + @pattern.composite(interface=FetchStrategy) class FetchStrategyComposite(object):