[cig-commits] commit: Forgot to weed out non-configuration packages.

Mercurial hg at geodynamics.org
Mon Nov 24 11:27:50 PST 2008


changeset:   8:34cf09805267
user:        LukeHodkinson
date:        Wed Jun 25 03:25:12 2008 +0000
files:       SConfig/Project.py
description:
Forgot to weed out non-configuration packages.


diff -r 065ffcafa66d -r 34cf09805267 SConfig/Project.py
--- a/SConfig/Project.py	Wed Jun 25 03:22:43 2008 +0000
+++ b/SConfig/Project.py	Wed Jun 25 03:25:12 2008 +0000
@@ -81,11 +81,12 @@ class Project(SConfig.Node):
         # Decide which selection of dependencies to use. We use the 'value'
         # method for each configuration.
         max_val = 0
-        selected = None
+        selected = deps[0]
         for d in deps:
             cur_val = 0
             for cfg in d:
-                cur_val += cfg.value()
+                if isinstance(cfg, Configuration):
+                    cur_val += cfg.value()
             if cur_val > max_val:
                 max_val = cur_val
                 selected = d



More information about the CIG-COMMITS mailing list