Home | History | Annotate | Download | only in utils

Lines Matching refs:checksum

19     """@returns The hex checksum of a file given its pathname."""
452 If the the package already exists in dest_dir and the checksum
467 # If the package exists, verify its checksum and be happy if it is good.
471 logging.info('Good checksum for existing %s package.',
475 logging.warning('Bad checksum for existing %s package. '
477 os.rename(local_path, local_path + '.wrong-checksum')
480 # checksum does not match.
496 checksum = utils.hash('sha1')
505 checksum.update(data)
509 if self.hex_sum != checksum.hexdigest():
510 logging.warning('Bad checksum for %s fetched from %s.',
512 logging.warning('Got %s', checksum.hexdigest())
516 logging.info('Good checksum.')