summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/package.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py
index 3b4c5fa394..8d6b2b99f5 100644
--- a/lib/spack/spack/package.py
+++ b/lib/spack/spack/package.py
@@ -494,17 +494,6 @@ class PackageBase(with_metaclass(PackageMeta, PackageViewMixin, object)):
self._fetcher = None
self.url = getattr(self.__class__, 'url', None)
- # Fix up self.url if this package fetches with a URLFetchStrategy.
- # This makes self.url behave sanely.
- if self.spec.versions.concrete:
- # TODO: this is a really roundabout way of determining the type
- # TODO: of fetch to do. figure out a more sane fetch
- # TODO: strategy/package init order (right now it's conflated with
- # TODO: stage, package, and the tests make assumptions)
- f = fs.for_package_version(self, self.version)
- if isinstance(f, fs.URLFetchStrategy):
- self.url = self.url_for_version(self.spec.version)
-
# Set a default list URL (place to find available versions)
if not hasattr(self, 'list_url'):
self.list_url = None