diff options
author | Paul Hopkins <paul.hopkins@ligo.org> | 2016-07-22 09:11:26 +0100 |
---|---|---|
committer | Paul Hopkins <paul.hopkins@ligo.org> | 2016-07-29 13:02:47 +0100 |
commit | 5eebb2defa08cd897b236545c0fdcca2eca95688 (patch) | |
tree | 9e9b4e358a1ca3070cb6a21c1bf8839531fb63bb | |
parent | e04662f84ff9fdf30221f0a50d566eb5ded0f20c (diff) | |
download | spack-5eebb2defa08cd897b236545c0fdcca2eca95688.tar.gz spack-5eebb2defa08cd897b236545c0fdcca2eca95688.tar.bz2 spack-5eebb2defa08cd897b236545c0fdcca2eca95688.tar.xz spack-5eebb2defa08cd897b236545c0fdcca2eca95688.zip |
Use space characters to separate preferred variants from package name and each other
-rw-r--r-- | lib/spack/spack/preferred_packages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/preferred_packages.py b/lib/spack/spack/preferred_packages.py index 5f18e212b6..f079c1ef8b 100644 --- a/lib/spack/spack/preferred_packages.py +++ b/lib/spack/spack/preferred_packages.py @@ -162,8 +162,8 @@ class PreferredPackages(object): """Return a VariantMap of preferred variants and their values""" variants = self.preferred.get(pkgname, {}).get('variants', '') if not isinstance(variants, basestring): - variants = "".join(variants) - return spack.spec.Spec(pkgname + variants).variants + variants = " ".join(variants) + return spack.spec.Spec("%s %s" % (pkgname, variants)).variants def version_compare(self, pkgname, a, b): """Return less-than-0, 0, or greater than 0 if version a of pkgname is |