Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checksums are assumed to be in sha256 format #29

Open
andreabolognani opened this issue Jan 13, 2023 · 2 comments
Open

Checksums are assumed to be in sha256 format #29

andreabolognani opened this issue Jan 13, 2023 · 2 comments

Comments

@andreabolognani
Copy link
Collaborator

A colleague has reported hitting the following error:

INFO[0004] Resolving repomd.xml from http://<foo>/repodata/repomd.xml 
INFO[0004] Loading primary file from http://<foo>/repodata/<foo>-primary.xml.gz 
Error: failed to fetch primary.xml for <foo>: failed to get sha256sum of file: no sha256 found

On further inspection, this is caused by the fact that repomd.xml contains a bunch of

<checksum type='sha'>

elements, while bazeldnf expects all checksums to be in sha256 format.

Adding sha1 (and sha512?) support doesn't look too difficult from a quick look, but I can't allocate time to the task right now.

@rmohr
Copy link
Owner

rmohr commented Jan 30, 2023

I guess, we would have to download it then and create a sha256 value out of the file for inclusion.

@rmohr
Copy link
Owner

rmohr commented Oct 6, 2023

With #62 the way is open for sha512 via the integrity attribute. Sha1 is probably not something which we can have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants