def update_local_plugin_descriptor(plugins):
 structure = []
 if os.path.isfile(resources.PLUGINS_DESCRIPTOR):
  structure = json_manager.read_json(resources.PLUGINS_DESCRIPTOR)
 for plug_list in plugins:
  plug = {}
  plug[u'name'] = plug_list[0]
  plug[u'version'] = plug_list[1]
  plug[u'description'] = plug_list[2]
  plug[u'authors'] = plug_list[3]
  plug[u'home'] = plug_list[4]
  plug[u'download'] = plug_list[5]
  plug[u'plugin-descriptor'] = plug_list[6]
  structure.append(plug)
 json_manager.write_json(structure, resources.PLUGINS_DESCRIPTOR)

def update_local_plugin_descriptor ( plugins ) : structure = [ ] if os . path . isfile ( resources . PLUGINS_DESCRIPTOR ) : structure = json_manager . read_json ( resources . PLUGINS_DESCRIPTOR ) for plug_list in plugins : plug = { } plug [ u'name' ] = plug_list [ 0 ] plug [ u'version' ] = plug_list [ 1 ] plug [ u'description' ] = plug_list [ 2 ] plug [ u'authors' ] = plug_list [ 3 ] plug [ u'home' ] = plug_list [ 4 ] plug [ u'download' ] = plug_list [ 5 ] plug [ u'plugin-descriptor' ] = plug_list [ 6 ] structure . append ( plug ) json_manager . write_json ( structure , resources . PLUGINS_DESCRIPTOR )
updates the local plugin description the description .