[Pulp-list] rpm checksums in PULP v1

Andreas Piesk a.piesk at gmx.net
Mon Feb 11 18:39:42 UTC 2013


On 08.02.2013 23:08, Andreas Piesk wrote:
> On 07.02.2013 19:38, Andreas Piesk wrote:
>>
>> i haven't figured out, why the import uses sha256 and not the checksum_type of the repo it is
>> importing into. any pointers will be appreciated.
>>
> 
> OK, found it and fixed my problem with the little attached patch. it adds a new parameter --hashtype
> to the content admin plugin and prints in verbose how many files have been processed.
> 

i had to fix another little issue during my migration project. for some reasons in one of the repos
was a file which i imported along with the packages using sha1. unfortunately the code to delete a
file assumes the default, sha256 which left me with a file i couldn't delete.

the attached patch contains all the previous changes plus a check in server/api/file.py for presence
of a a key 'sha' and if it doesn't exist, it falls back to the default 'sha256'.

regards,
-ap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pulp-hashtypes-git.patch
Type: text/x-diff
Size: 4429 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20130211/23c2bee3/attachment.bin>


More information about the Pulp-list mailing list