diff --git a/runbot/models/build.py b/runbot/models/build.py index bf25754b..6d10ad3f 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -287,7 +287,7 @@ class runbot_build(models.Model): ] candidates = self.search(domain) - nb_deps = len(repo.dependency_ids) + nb_deps = len(build_id.dependency_ids) if candidates and nb_deps: # check that all depedencies are matching.