runbot/forwardport/migrations/15.0.1.3/pre-migration.py
Xavier Morel 9de18de454 [CHG] *: move repo cache from forwardbot to mergebot
If the stagings are going to be created locally (via a git working
copy rather than the github API), the mergebot part needs to have
access to the cache, so move the cache over. Also move the maintenance
cron.

In an extermely minor way, this prefigures the (hopeful) eventual
merging of the ~~planes~~ modules.
2023-08-25 15:04:48 +02:00

10 lines
253 B
Python

import pathlib
from odoo.tools.appdirs import user_cache_dir
def migrate(_cr, _version):
# avoid needing to re-clone our repo unnecessarily
pathlib.Path(user_cache_dir('forwardport')).rename(
pathlib.Path(user_cache_dir('mergebot')))