Fix ranked components to be always included
authorKalle Vahlman <kalle.vahlman@movial.com>
Wed, 10 Jun 2009 05:04:25 +0000 (08:04 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Wed, 10 Jun 2009 05:04:25 +0000 (08:04 +0300)
matrix/components.py

index 93b6387..1ac060f 100644 (file)
@@ -107,7 +107,11 @@ class Resolver(object):
                if not targets:
                        for c in config.components.itervalues():
                                self.add_component(c)
-
+               else:
+                       # Otherwise, only look for components with non-zero rank
+                       for c in config.components.itervalues():
+                               if c.rank != 0:
+                                       self.add_component(c)
 
                # iterate over a _copy_ of the _current_ package list;
                # automatic components' dependencies will be initialized