Home | History | Annotate | Download | only in utils

Lines Matching refs:checksum

23     """@returns The hex checksum of a file given its pathname."""
513 If the the package already exists in dest_dir and the checksum
528 # If the package exists, verify its checksum and be happy if it is good.
532 logging.info('Good checksum for existing %s package.',
536 logging.warning('Bad checksum for existing %s package. '
538 os.rename(local_path, local_path + '.wrong-checksum')
541 # checksum does not match.
557 checksum = utils.hash('sha1')
566 checksum.update(data)
570 if self.hex_sum != checksum.hexdigest():
571 logging.warning('Bad checksum for %s fetched from %s.',
573 logging.warning('Got %s', checksum.hexdigest())
577 logging.info('Good checksum.')