From 3b71d78f3cddeb1b622b9a49146adadbd1b1d9dc Mon Sep 17 00:00:00 2001
From: Peter Scheibel <scheibel1@llnl.gov>
Date: Wed, 8 Jun 2016 09:57:56 -0700
Subject: [PATCH] rename URLMirrorFetchStrategy to CacheURLFetchStrategy since
 it isnt used to manage all mirror URLs - just the cache (the specific
 behavior that a URL may refer to a stale resource doesn't necessarily apply
 to mirrors)

---
 lib/spack/spack/fetch_strategy.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py
index 3221716b91..2607d0a7f4 100644
--- a/lib/spack/spack/fetch_strategy.py
+++ b/lib/spack/spack/fetch_strategy.py
@@ -352,15 +352,14 @@ def __str__(self):
             return "[no url]"
 
 
-class URLMirrorFetchStrategy(URLFetchStrategy):
-    """The resource associated with a URL at a mirror may be out of date.
-    """
+class CacheURLFetchStrategy(URLFetchStrategy):
+    """The resource associated with a cache URL may be out of date."""
     def __init__(self, *args, **kwargs):
-        super(URLMirrorFetchStrategy, self).__init__(*args, **kwargs)
+        super(CacheURLFetchStrategy, self).__init__(*args, **kwargs)
     
     @_needs_stage
     def fetch(self):
-        super(URLMirrorFetchStrategy, self).fetch()
+        super(CacheURLFetchStrategy, self).fetch()
         if self.digest:
             try:
                 self.check()
@@ -847,7 +846,7 @@ def store(self, fetcher, relativeDst):
         
     def fetcher(self, targetPath, digest):
         url = "file://" + join_path(self.root, targetPath)
-        return URLMirrorFetchStrategy(url, digest)
+        return CacheURLFetchStrategy(url, digest)
 
 
 class FetchError(spack.error.SpackError):
-- 
GitLab