From 7ef95767eef03a8498ed1a24659b9e5b52856f01 Mon Sep 17 00:00:00 2001 From: Joschka Lingemann Date: Fri, 3 Mar 2017 23:30:32 +0100 Subject: [PATCH] Fix error raised for multiple virtual packages. (#3306) --- lib/spack/spack/package_prefs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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