← Back to team overview

openupgrade-drivers team mailing list archive

Re: Auto install new unmet dependencies

 

Hi, Stefan,

I also get troubles refreshing module list (I wrote a question some months
ago), and I have to patch server to force a module list update. I haven't
published yet because it's a little tricky:













*=== modified file 'openerp/modules/loading.py'---
openerp/modules/loading.py    2013-10-25 19:31:47 +0000+++
openerp/modules/loading.py    2014-03-01 15:09:58 +0000@@ -335,7 +335,7
@@                 tools.load_language(cr, lang)          # STEP 2: Mark
other modules to be loaded/updated-        if update_module:+        if
update_module or True: # force update             modobj =
pool.get('ir.module.module')             if ('base' in
tools.config['init']) or ('base' in
tools.config['update']):                 _logger.info
<http://logger.info>('updating modules list')*
So there's must be at least one path that doesn't get the list updated.
What I do is running server with configuration file and --update=all
parameters:

*./openupgrade/server/openerp-server
--config=./openerp-server_openupgrade.conf --update=all*

I know the existence of the migrate.py script, but I'm doing this method
since 6.0 version, and I'm lazy learning another ways if this one works ;)

We can work to find the problem, or merge this monkey patch, because doing
module list update every time is not a special problem (only a little more
process time) to cut the problem from the root.

Regards.


2014-03-17 11:15 GMT+01:00 Stefan <stefan@xxxxxxxx>:

> On 17-03-14 10:59, Valentin LAB wrote:
>
>>
>> ``document_page`` module content was moved towards a new ``website_blog``
>> that now depends on other modules ``website_mail`` and which in turn
>> require ``website``.
>>
>> Naturally I get these errors while updating all:
>>
>> ERROR: module website_mail: Unmet dependencies: website
>> ERROR: module website_blog: Unmet dependencies: website_mail
>>
>> What is the best way to tackle with these ? I'm willing to write some
>> code to install both of these if document_page was used in first place, but
>> it seems a very generic "install_all_unmet_dependency()" function would
>> be welcome...
>>
>
> At least up until 7.0, upgrading the base module (through --update all)
> refreshes the module list. It still seems to do so in trunk, in
> openerp/modules/loading.py (look for update_list). The new dependencies get
> selected for installation in openerp/openupgrade/openupgrade_loading.py.
> While these errors occur at some point in the process in the logs, the
> modules get installed fine during the upgrade.
>
> Not sure why it does not work for you.
>
> Cheers,
> Stefan.
>
>
>
> --
> Mailing list: https://launchpad.net/~openupgrade-drivers
> Post to     : openupgrade-drivers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openupgrade-drivers
> More help   : https://help.launchpad.net/ListHelp
>

References