def download(self): stream_logger.info(' :: Download') for package in self.packages: logger.info('Download %s' % package.name) # Not cached if not cached(package): logger.info('%s not cached' % package.name) get_package(package) # Invalid Md5 if not checkmd5(package): logger.info('%s md5 invalid' % package.name) stream_logger.info(' | Md5 invalid, package corrumpt') raise InstallerException('Invalid Md5') # Cached else: logger.info('%s already in cache' % package.name) # Invalid Md5, redownload if not checkmd5(package): logger.info('%s cache package md5 invalid' % package.name) get_package(package) if not checkmd5(package): logger.info('%s md5 invalid' % package.name) stream_logger.info( ' | Md5 invalid, package corrumpt') raise InstallerException('Invalid Md5') else: stream_logger.info(' | %s already in cache' % package.name)
def download(self): stream_logger.info(' :: Download') for package in self.packages: logger.info('Download %s' % package.name) # Not cached if not cached(package): logger.info('%s not cached' % package.name) get_package(package) # Invalid Md5 if not checkmd5(package): logger.info('%s md5 invalid' % package.name) stream_logger.info(' | Md5 invalid, package corrumpt') raise ReinstallerException('Invalid Md5') # Cached else: logger.info('%s already in cache' % package.name) # Invalid Md5, redownload if not checkmd5(package): logger.info('%s cache package md5 invalid' % package.name) get_package(package) if not checkmd5(package): logger.info('%s md5 invalid' % package.name) stream_logger.info(' | Md5 invalid, package corrumpt') raise ReinstallerException('Invalid Md5') else: stream_logger.info(' | %s already in cache' % package.name)
def download(self): stream_logger.info(" :: Download") for package in self.packages: logger.info("Download %s" % package.name) get_package(package) if not checkmd5(package): logger.info("%s md5 invalid" % package.name) stream_logger.info(" | Md5 invalid, package corrumpt") raise UpgraderException("Invalid Md5")
def download(self): stream_logger.info(' :: Download') for package in self.packages: logger.info('Download %s' % package.name) get_package(package) if not checkmd5(package): logger.info('%s md5 invalid' % package.name) stream_logger.info(' | Md5 invalid, package corrumpt') raise UpgraderException('Invalid Md5')