def Execute(self, msg): module_logger.debug('Executing Plugin Version Filter') plugin_ver_index = {} for plugin, required in msg.plugins.iteritems(): if required: module_logger.info('Getting version for %s' % plugin) ver_list = Dev_Bukkit.get_versions(plugin) plugin_ver_index[plugin] = ver_list msg.PVI = plugin_ver_index return msg
def Execute(self, msg): module_logger.debug('Executing Plugin Version Filter') plugin_ver_index = {} for plugin, required in msg.plugins.iteritems(): if required: module_logger.info('Getting version for %s'%plugin) ver_list = Dev_Bukkit.get_versions(plugin) plugin_ver_index[plugin]=ver_list msg.PVI = plugin_ver_index return msg
def Execute(self, msg): module_logger.debug('Downloading Plugins') for plugin in msg.plugins: file = plugin+str(FolderApi.convert_ver_to_float(msg.craftbukkit.version, whole=True)) deets = Dev_Bukkit.find_compat(plugin, msg.cb_version) module_logger.debug('Checking for Existing: %s'%plugin) existing = FolderApi.check_for_existing('jars/', file, deets[1]) module_logger.debug('Check Returned: %s' %str(existing)) if not existing == False: module_logger.debug('Match Found: %s'%existing) msg.plugins[plugin] = package.Plugin(existing, plugin, deets[1]) else: module_logger.debug('Downloading: %s'%plugin) filename = 'jars/%s.jar'%(file) FolderApi.dl_file(deets[0], filename, self.callback) if FolderApi.check_md5(filename, deets[1]): msg.plugins[plugin] = package.Plugin(filename, plugin, deets[1]) module_logger.debug('Finished downloading %s'%plugin) return msg
def Execute(self, msg): module_logger.debug('Downloading Plugins') for plugin in msg.plugins: file = plugin + str( FolderApi.convert_ver_to_float(msg.craftbukkit.version, whole=True)) deets = Dev_Bukkit.find_compat(plugin, msg.cb_version) module_logger.debug('Checking for Existing: %s' % plugin) existing = FolderApi.check_for_existing('jars/', file, deets[1]) module_logger.debug('Check Returned: %s' % str(existing)) if not existing == False: module_logger.debug('Match Found: %s' % existing) msg.plugins[plugin] = package.Plugin(existing, plugin, deets[1]) else: module_logger.debug('Downloading: %s' % plugin) filename = 'jars/%s.jar' % (file) FolderApi.dl_file(deets[0], filename, self.callback) if FolderApi.check_md5(filename, deets[1]): msg.plugins[plugin] = package.Plugin( filename, plugin, deets[1]) module_logger.debug('Finished downloading %s' % plugin) return msg