def load(self, location, is_url, isInstalled): g.feedback.log(LogLevels.INFO, "Loading from %s" % location) g.feedback.log(LogLevels.INFO, "Is already installed? %s" % str(isInstalled)) # TODO: Fix this if is_url: l = UrlLoader(location) data = l.read(True) else: l = FileLoader(location) data = l.read(True) if data is None: raise ManifestException("Unable to load data from the specified source") self.data = data self.parseData(isInstalled)
def load(self, location, installed): g.feedback.log(LogLevels.INFO, "Loading from %s" % location) if self.isPathUrl(location): l = UrlLoader(location) data = l.read(True, checkCache=(not installed)) else: l = FileLoader(location) data = l.read(True) if data is None: raise ManifestException("Unable to load data from the specified source") g.feedback.log(LogLevels.DEBUG, "Data: %s" % data) self.data = data self.parseData()
def load(self, location, is_url, isInstalled): g.feedback.log(LogLevels.INFO, "Loading from %s" % location) g.feedback.log(LogLevels.INFO, "Is already installed? %s" % str(isInstalled)) # TODO: Fix this if is_url: l = UrlLoader(location) data = l.read(True) else: l = FileLoader(location) data = l.read(True) if data is None: raise ManifestException( "Unable to load data from the specified source") self.data = data self.parseData(isInstalled)