From 13eca0357fc1d61b74a339867ae628e978b39dc8 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Mon, 29 Sep 2014 23:30:48 -0700 Subject: [PATCH] Bugfix for version substitution. --- lib/spack/spack/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 0d6c400bd8..91419e3a3f 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -551,7 +551,8 @@ def nearest_url(version): base_url, self.url_version(version)) return vdesc.url else: - return nearest_url(version) + base_url = nearest_url(version) + return url.substitute_version(base_url, self.url_version(version)) @property