Skip to content
Permalink
Browse files

fix 3d7c711 (refs #21872)

  • Loading branch information
jef-n committed Apr 17, 2019
1 parent 3d7c711 commit 40c790f5d90e342f986408a13d789276a0d0de4f
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/pyplugin_installer/plugindependencies.py
@@ -26,10 +26,10 @@ def __plugin_name_map(plugin_data_values):


def __get_plugin_deps(plugin_id):

result = {}
updateAvailablePlugins()
try:
global plugins_metadata_parser
parser = plugins_metadata_parser[plugin_id]
plugin_deps = parser.get('general', 'plugin_dependencies')
except (NoOptionError, NoSectionError, KeyError):
@@ -68,8 +68,10 @@ def find_dependencies(plugin_id, plugin_data=None, plugin_deps=None, installed_p
plugin_deps = __get_plugin_deps(plugin_id)

if installed_plugins is None:
global plugins_metadata_parser
updateAvailablePlugins()
installed_plugins = {plugins_metadata_parser[k].get('general', 'name'): metadata_parser[k].get('general', 'version') for k, v in metadata_parser.items()}
metadata_parser = plugins_metadata_parser
installed_plugins = {metadata_parser[k].get('general', 'name'): metadata_parser[k].get('general', 'version') for k, v in metadata_parser.items()}

if plugin_data is None:
plugin_data = plugin_installer.plugins.all()

0 comments on commit 40c790f

Please sign in to comment.
You can’t perform that action at this time.