Fixed log message for not found old-style repo
Made log message nicer when an yum repo is not found in .cekit/config .
@@ -96,10 +96,15 @@ class Repository(Descriptor):
configured_repository_names.remove('__name__')
if descriptor['name'] not in configured_repositories:
+ if configured_repository_names:
raise CekitError("Package repository '%s' used in descriptor is not "
"available in Concreate configuration file. "
"Available repositories: %s"
- % (descriptor['name'], configured_repository_names))
+ % (descriptor['name'], ' '.join(configured_repository_names)))
+ else:
+ raise CekitError("Package repository '%s' used in descriptor is not "
+ "available in Concreate configuration file. "
+ % descriptor['name'])
return configured_repositories[descriptor['name']]
