Skip to content

Commit

Permalink
Esure to install only not installed deps
Browse files Browse the repository at this point in the history
  • Loading branch information
polsala committed Nov 8, 2024
1 parent 45684bd commit 9093e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions destral/openerp.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ def install_module(self, module, with_test_depends=False):
logger.info("Including extra dependencies:\n%s" % '\n'.join(extra_modules))
extra_modules_ids = module_obj.search(
txn.cursor, DEFAULT_USER,
[('name', 'in', extra_modules)],
[('name', 'in', extra_modules), ('state', '!=', 'installed')],
)
if len(extra_modules_ids) != len(extra_modules):
logger.warning("Some extra dependencies were not found")
logger.warning("Some extra dependencies were not found or already installed")

module_ids.extend(extra_modules_ids)

Expand Down

0 comments on commit 9093e44

Please sign in to comment.