[migration] bugfix: c-c list was not displaying the name of a cube requiring another cube without constraining the version. stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sat, 18 Jun 2011 23:27:23 +0200
branchstable
changeset 7537 1af162bd78b8
parent 7535 d5725a89dac9
child 7538 849c04098f3f
[migration] bugfix: c-c list was not displaying the name of a cube requiring another cube without constraining the version.
migration.py
--- a/migration.py	Fri Jun 17 18:51:01 2011 +0200
+++ b/migration.py	Sat Jun 18 23:27:23 2011 +0200
@@ -492,6 +492,8 @@
                         self.warnings.append(
                             'cube %s depends on %s but constraint badly '
                             'formatted: %s' % (cube, name, constraint))
+                else:
+                    self.reverse_dependencies[name].add( (None, None, cube) )
         # check consistency
         for cube, versions in sorted(self.reverse_dependencies.items()):
             oper, version, source = None, None, None
@@ -517,5 +519,7 @@
                 if oper in ('>=','='):
                     if lower_strict:
                         self.errors.append( ('update', cube, version, source) )
+                elif oper is None:
+                    pass # no constraint on version
                 else:
                     print 'unknown operator', oper