mirror of
https://github.com/odoo/runbot.git
synced 2025-03-16 07:55:45 +07:00
[FIX] runbot: avoid dependency build from an hidden build
This commit is contained in:
parent
26dce90dd8
commit
931e2bef8f
@ -372,7 +372,7 @@ class runbot_repo(models.Model):
|
||||
if branch.sticky:
|
||||
for rev_repo in self.search([('dependency_ids', 'in', self.id), ('no_build', '=', False)]):
|
||||
# find the latest build with the same branch name
|
||||
latest_rev_build = Build.search([('build_type', '=', 'normal'), ('hidden', '=', 'False'), ('repo_id.id', '=', rev_repo.id), ('branch_id.branch_name', '=', branch.branch_name)], order='id desc', limit=1)
|
||||
latest_rev_build = Build.search([('build_type', '=', 'normal'), ('hidden', '=', False), ('repo_id.id', '=', rev_repo.id), ('branch_id.branch_name', '=', branch.branch_name)], order='id desc', limit=1)
|
||||
if latest_rev_build:
|
||||
_logger.debug('Reverse dependency build %s forced in repo %s by commit %s', latest_rev_build.dest, rev_repo.name, sha[:6])
|
||||
indirect = latest_rev_build._force(message='Rebuild from dependency %s commit %s' % (self.name, sha[:6]))
|
||||
|
Loading…
Reference in New Issue
Block a user