migration.py
branchstable
changeset 8107 e5858a4a1244
parent 7879 9aae456abab5
child 8108 91868ec92391
--- a/migration.py	Mon Dec 05 13:42:23 2011 +0100
+++ b/migration.py	Mon Dec 05 14:31:41 2011 +0100
@@ -411,7 +411,7 @@
         basecubes = [c for c in origcubes if not c in toremove]
         self.config._cubes = tuple(self.config.expand_cubes(basecubes))
         removed = [p for p in origcubes if not p in self.config._cubes]
-        if not cube in removed:
+        if not cube in removed and cube in origcubes:
             raise ConfigurationError("can't remove cube %s, "
                                      "used as a dependency" % cube)
         return removed