Fix error raised for multiple virtual packages. (#3306)

This commit is contained in:
Joschka Lingemann 2017-03-03 23:30:32 +01:00 committed by Adam J. Stewart
parent 37eb59622d
commit 7ef95767ee

View file

@ -43,7 +43,8 @@ def get_packages_config():
if virtuals: if virtuals:
errors = ["%s: %s" % (line_info, name) for name, line_info in virtuals] errors = ["%s: %s" % (line_info, name) for name, line_info in virtuals]
raise VirtualInPackagesYAMLError( raise VirtualInPackagesYAMLError(
"packages.yaml entries cannot be virtual packages:", *errors) "packages.yaml entries cannot be virtual packages:",
'\n'.join(errors))
return config return config