anybox / anybox.recipe.odoo

Buildout recipe for Odoo >=8. For older versions please use anybox.recipe.openerp
http://docs.anybox.fr/anybox.recipe.odoo/current/
GNU Affero General Public License v3.0
25 stars 63 forks source link

[FIX] vcs-clear-retry depends on UpdateError being raised #135

Closed StefanRijnhart closed 3 years ago

StefanRijnhart commented 3 years ago

Without the callwith argument, the CalledProcessError is not intercepted and replaced by an UpdateError, and in that case the cleaning + retry does not take place.

  File "/mnt/odoo/buildout/src/anybox.recipe.odoo/anybox/recipe/odoo/vcs/git.py", line 351, in get_update
    return self.fetch_remote_sha(revision)
  File "/mnt/odoo/buildout/src/anybox.recipe.odoo/anybox/recipe/odoo/vcs/git.py", line 259, in fetch_remote_sha
    self.log_call(['git', 'checkout', sha])
  File "/mnt/odoo/buildout/src/anybox.recipe.odoo/anybox/recipe/odoo/vcs/git.py", line 147, in log_call
    return callwith(cmd, **kw)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'checkout', 'a8a54da1ffd1']' returned non-zero exit status 1.