Project

Profile

Help

Story #4458

Updated by ttereshc about 5 years ago

Support @checksum_type@ option at publish time. 
 This is one-time option and it's passed as a parameter for a @publish/@ API call. 
 It affects all the repodata, including primary.xml, repomd.xml, etc. 

 Origin of checksum types and their precedence (at the top is the one which is used first if present and available): 
  - configuration at publish time (this story) 
  - a remote repo  
  - Pulp default (sha256) 

 <pre> 
 if all_the_packages_in_a_repo_have_a_checksum_of_the_requested_type_available: 
     use_the_requested_checksum_type() 
 elif remote_repo_checksum_type_is_known and all_the_packages_in_a_repo_have_a_checksum_of_that_type_available: 
     use_the_checksum_type_from_a_remote() 
 else: 
     use_sha256() or fail 
 </pre> 

 See questions and discussion in the comments, the story will be updated when agreement is reached what and how to do and how. do.

Back