Lines Matching full:checksum
28 # the name of the checksum file that stores the packages' checksums
29 CHECKSUM_FILE = "packages.checksum"
253 to dump stuff (like checksum files of the repositories
265 # In memory dictionary that stores the checksum's of packages
423 # then check to see if the .checksum file is the latest
429 # update the checksum in that directory
456 use_checksum : This is set to False to fetch the packages.checksum file
457 so that the checksum comparison is bypassed for the
458 checksum file itself. This is used internally by the
485 # Fetch the package if it is not there, the checksum does
492 # update checksum so we won't refetch next time.
522 # get the packages' checksum file and update it with the current
523 # package's checksum
538 # TODO(aganti): Fix the bug with the current checksum logic where
541 # but the ideal solution is to make the checksum file repository specific
546 Also uploads the checksum file to all the repos.
550 update_checksum : If set to False, the checksum file is not
555 the checksum file and bloat it.
655 # remove the package and upload the checksum file to the repos
691 Return the complete path of the checksum file (assumed to be stored
699 Fetch the checksum file if not already fetched. If the checksum file
701 the current package's (specified in pkg_path) checksum value in it.
702 Populate the local checksum dictionary with the values read from
703 the checksum file.
704 The checksum file is assumed to be present in self.pkgmgr_dir
708 # Fetch the checksum file
711 # The packages checksum file does not exist locally.
717 # checksum file should also be automatically present. This
720 # uploaded to the repos (hence no checksum file created yet)
724 # Read the checksum file into memory
728 # Return {} if we have an empty checksum file present
732 # Parse the checksum file contents into self._checksum_dict
734 checksum, package_name = line.split(None, 1)
735 self._checksum_dict[package_name] = checksum
742 Save the checksum dictionary onto the checksum file. Update the
744 checksum_dict : New checksum dictionary
745 checksum_dir : The directory in which to store the checksum file to.
749 checksum_contents = '\n'.join(checksum + ' ' + pkg_name
750 for pkg_name, checksum in
752 # Write the checksum file back to disk
760 Compute the MD5 checksum for the package file and return it.
763 # Check if the checksum has been pre-calculated.
767 # case, we will have the freshest checksum during the install
769 # checksum always gets recomputed during src_compile.
772 # have the checksum associated with what was used to compile
774 checksum_path = pkg_path + '.checksum'
776 print("Checksum %s exists" % checksum_path)
785 Update the checksum of the package in the packages' checksum
790 # Compute the new checksum
799 Remove the checksum of the package from the packages checksum file.
801 repositories in order clean its corresponding checksum.
812 Calculate the checksum of the file specified in pkg_path and
813 compare it with the checksum in the checksum file
816 checksum is being compared
856 Compare the checksum of the tarball_path with the .checksum file
860 checksum_path = os.path.join(dest_dir, '.checksum')
864 # If the .checksum file is not present (generally, this should
875 ".checksum" file in the dest_dir containing the checksum
882 # Put the .checksum file in the install_dir to note
886 '.checksum')