Fix a bug that caused unnecessary component rebuilds in some cases.
authorIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Fri, 12 Dec 2008 15:55:55 +0000 (17:55 +0200)
committerIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Fri, 12 Dec 2008 15:55:55 +0000 (17:55 +0200)
matrix/build.py

index 69f3728..d9d1e4f 100644 (file)
@@ -67,11 +67,11 @@ def analyze_build(targets):
                if c.rebuild_checked:
                        continue
 
-               count += analyze_build(c.get_depends())
+               depcount = analyze_build(c.get_depends())
 
-               if count or not cache.contains(c):
+               if depcount or not cache.contains(c):
                        c.needs_rebuild = True
-                       count += 1
+                       count += 1 + depcount
        
                c.rebuild_checked = True