[c-c list] configuration pb cubes directly hold version number now, avoid crash when reporting errors stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 07 May 2010 14:42:18 +0200
branchstable
changeset 5498 eab5540d96eb
parent 5497 96fd339f7917
child 5501 1af69779f597
[c-c list] configuration pb cubes directly hold version number now, avoid crash when reporting errors
cwctl.py
--- a/cwctl.py	Thu May 06 16:23:39 2010 +0000
+++ b/cwctl.py	Fri May 07 14:42:18 2010 +0200
@@ -285,7 +285,7 @@
                     print 'is not installed, but required by %s' % ' '.join(cfgpb.reverse_constraints[cube])
                 else:
                     print '* cube %s version %s is installed, but version %s is required by (%s)' % (
-                        cube, cfgpb.cubes[cube].version, version, ', '.join(cfgpb.reverse_constraints[cube]))
+                        cube, cfgpb.cubes[cube], version, ', '.join(cfgpb.reverse_constraints[cube]))
 
 class CreateInstanceCommand(Command):
     """Create an instance from a cube. This is an unified