Lines Matching full:checksum

15 # the name of the checksum file that stores the packages' checksums
16 CHECKSUM_FILE = "packages.checksum"
224 to dump stuff (like checksum files of the repositories
236 # In memory dictionary that stores the checksum's of packages
375 # then check to see if the .checksum file is the latest
388 # update the checksum in that directory
415 use_checksum : This is set to False to fetch the packages.checksum file
416 so that the checksum comparison is bypassed for the
417 checksum file itself. This is used internally by the
451 # Fetch the package if it is not there, the checksum does
458 # update checksum so we won't refetch next time.
488 # get the packages' checksum file and update it with the current
489 # package's checksum
504 # TODO(aganti): Fix the bug with the current checksum logic where
507 # but the ideal solution is to make the checksum file repository specific
512 Also uploads the checksum file to all the repos.
516 update_checksum : If set to False, the checksum file is not
521 the checksum file and bloat it.
616 # remove the package and upload the checksum file to the repos
652 Return the complete path of the checksum file (assumed to be stored
660 Fetch the checksum file if not already fetched. If the checksum file
662 the current package's (specified in pkg_path) checksum value in it.
663 Populate the local checksum dictionary with the values read from
664 the checksum file.
665 The checksum file is assumed to be present in self.pkgmgr_dir
669 # Fetch the checksum file
674 # The packages checksum file does not exist locally.
680 # checksum file should also be automatically present. This
683 # uploaded to the repos (hence no checksum file created yet)
687 # Read the checksum file into memory
691 # Return {} if we have an empty checksum file present
695 # Parse the checksum file contents into self._checksum_dict
697 checksum, package_name = line.split(None, 1)
698 self._checksum_dict[package_name] = checksum
705 Save the checksum dictionary onto the checksum file. Update the
707 checksum_dict : New checksum dictionary
708 checksum_dir : The directory in which to store the checksum file to.
712 checksum_contents = '\n'.join(checksum + ' ' + pkg_name
713 for pkg_name, checksum in
715 # Write the checksum file back to disk
723 Compute the MD5 checksum for the package file and return it.
732 Update the checksum of the package in the packages' checksum
737 # Compute the new checksum
746 Remove the checksum of the package from the packages checksum file.
748 repositories in order clean its corresponding checksum.
759 Calculate the checksum of the file specified in pkg_path and
760 compare it with the checksum in the checksum file
763 checksum is being compared
803 Compare the checksum of the tarball_path with the .checksum file
807 checksum_path = os.path.join(dest_dir, '.checksum')
811 # If the .checksum file is not present (generally, this should
822 ".checksum" file in the dest_dir containing the checksum
829 # Put the .checksum file in the install_dir to note
833 '.checksum')