diff options
author | Joschka Lingemann <jlingema@users.noreply.github.com> | 2017-03-03 23:30:32 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-03-03 16:30:32 -0600 |
commit | 7ef95767eef03a8498ed1a24659b9e5b52856f01 (patch) | |
tree | eca94e21cff1bb4775366cf98a4b1269c7268c50 | |
parent | 37eb59622de37abab334fb586ed28819108ab9ba (diff) | |
download | spack-7ef95767eef03a8498ed1a24659b9e5b52856f01.tar.gz spack-7ef95767eef03a8498ed1a24659b9e5b52856f01.tar.bz2 spack-7ef95767eef03a8498ed1a24659b9e5b52856f01.tar.xz spack-7ef95767eef03a8498ed1a24659b9e5b52856f01.zip |
Fix error raised for multiple virtual packages. (#3306)
-rw-r--r-- | lib/spack/spack/package_prefs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/package_prefs.py b/lib/spack/spack/package_prefs.py index 190647bb81..63f90d9b50 100644 --- a/lib/spack/spack/package_prefs.py +++ b/lib/spack/spack/package_prefs.py @@ -43,7 +43,8 @@ def get_packages_config(): if virtuals: errors = ["%s: %s" % (line_info, name) for name, line_info in virtuals] raise VirtualInPackagesYAMLError( - "packages.yaml entries cannot be virtual packages:", *errors) + "packages.yaml entries cannot be virtual packages:", + '\n'.join(errors)) return config |