The present implementation of upgrade is not always working correctly

Bug #233619 reported by Guido Amoruso
2
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
Undecided
Guido Amoruso

Bug Description

Upgrading all the plugins doesn't always work correctly: testing under the same circumnstancies doesn't give the same result.

The reason is that the present implementation triggers asyncronous calls of the easy_install_plugin() procedure, which may overlap causing unpredictable errors.

The solution is to do syncrounous calls when installing/upgrading each plugin, deferring the whole upgrade() procedure to another thread.

Revision history for this message
Guido Amoruso (guidonte) wrote :

(In [5128]) * elisa-core/elisa/core/epm/egg_plugin.py:
        * elisa-core/elisa/core/epm/egg_registry.py:
        Rework the upgrade procedure: temporary use the syncronous API and
        defer to thread. Fixes #1060.
        Don't mess with Python builtins: s/\<dir\>/directory/g

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.