[FIX] runbot: fix exact rebuild

This commit is contained in:
Xavier-Do 2019-07-03 10:51:35 +02:00
parent 53267d64bb
commit c5e0da174a

View File

@ -400,10 +400,16 @@ class runbot_build(models.Model):
'build_type': 'rebuild',
}
if exact:
if build.dependency_ids:
values['dependency_ids'] = [(0, 0, {
'match_type': dep.match_type,
'closest_branch_id': dep.closest_branch_id.id,
'dependency_hash': dep.dependency_hash,
'dependecy_repo_id': dep.dependecy_repo_id.id,
}) for dep in build.dependency_ids]
values.update({
'config_id': build.config_id.id,
'extra_params': build.extra_params,
'dependency_ids': build.dependency_ids,
'server_match': build.server_match,
'orphan_result': build.orphan_result,
})