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