diff options
Diffstat (limited to 'distbuild/build_controller.py')
-rw-r--r-- | distbuild/build_controller.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/distbuild/build_controller.py b/distbuild/build_controller.py index 3aa149f8..bfd910b2 100644 --- a/distbuild/build_controller.py +++ b/distbuild/build_controller.py @@ -604,7 +604,8 @@ class BuildController(distbuild.StateMachine): '''Send 'Need to build xx/yy artifacts' message.''' if len(self._components) == 0: - unbuilt = {a.cache_key for a in self._artifact.walk()} + unbuilt = {a.cache_key for a in self._artifact.walk() + if a.state == UNBUILT} else: # Partial distbuild unbuilt = set() @@ -619,7 +620,7 @@ class BuildController(distbuild.StateMachine): total = set() for c in self._components: total.update( - {a.cache_key for a in c.walk() if a.state == UNBUILT}) + {a.cache_key for a in c.walk()}) cache_state_msg = CacheState( self._request['id'], len(unbuilt), len(total)) |