• Home
  • Raw
  • Download

Lines Matching full:checksum

22 # the name of the checksum file that stores the packages' checksums
23 CHECKSUM_FILE = "packages.checksum"
247 to dump stuff (like checksum files of the repositories
259 # In memory dictionary that stores the checksum's of packages
417 # then check to see if the .checksum file is the latest
423 # update the checksum in that directory
450 use_checksum : This is set to False to fetch the packages.checksum file
451 so that the checksum comparison is bypassed for the
452 checksum file itself. This is used internally by the
479 # Fetch the package if it is not there, the checksum does
486 # update checksum so we won't refetch next time.
516 # get the packages' checksum file and update it with the current
517 # package's checksum
532 # TODO(aganti): Fix the bug with the current checksum logic where
535 # but the ideal solution is to make the checksum file repository specific
540 Also uploads the checksum file to all the repos.
544 update_checksum : If set to False, the checksum file is not
549 the checksum file and bloat it.
649 # remove the package and upload the checksum file to the repos
685 Return the complete path of the checksum file (assumed to be stored
693 Fetch the checksum file if not already fetched. If the checksum file
695 the current package's (specified in pkg_path) checksum value in it.
696 Populate the local checksum dictionary with the values read from
697 the checksum file.
698 The checksum file is assumed to be present in self.pkgmgr_dir
702 # Fetch the checksum file
705 # The packages checksum file does not exist locally.
711 # checksum file should also be automatically present. This
714 # uploaded to the repos (hence no checksum file created yet)
718 # Read the checksum file into memory
722 # Return {} if we have an empty checksum file present
726 # Parse the checksum file contents into self._checksum_dict
728 checksum, package_name = line.split(None, 1)
729 self._checksum_dict[package_name] = checksum
736 Save the checksum dictionary onto the checksum file. Update the
738 checksum_dict : New checksum dictionary
739 checksum_dir : The directory in which to store the checksum file to.
743 checksum_contents = '\n'.join(checksum + ' ' + pkg_name
744 for pkg_name, checksum in
746 # Write the checksum file back to disk
754 Compute the MD5 checksum for the package file and return it.
757 # Check if the checksum has been pre-calculated.
761 # case, we will have the freshest checksum during the install
763 # checksum always gets recomputed during src_compile.
766 # have the checksum associated with what was used to compile
768 checksum_path = pkg_path + '.checksum'
770 print ("Checksum %s exists" % checksum_path)
779 Update the checksum of the package in the packages' checksum
784 # Compute the new checksum
793 Remove the checksum of the package from the packages checksum file.
795 repositories in order clean its corresponding checksum.
806 Calculate the checksum of the file specified in pkg_path and
807 compare it with the checksum in the checksum file
810 checksum is being compared
850 Compare the checksum of the tarball_path with the .checksum file
854 checksum_path = os.path.join(dest_dir, '.checksum')
858 # If the .checksum file is not present (generally, this should
869 ".checksum" file in the dest_dir containing the checksum
876 # Put the .checksum file in the install_dir to note
880 '.checksum')