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

Create a repository with different checksum types in repomd.xml and primary.xml #113

Open
daviddavis opened this issue Dec 6, 2018 · 0 comments

Comments

@daviddavis
Copy link

There's a bug we're going to need to test where the repository has a different checksum type in the primary.xml file vs the repomd.xml file. The problem is that createrepo command only lets you specify a single checksum type to use.

I think these steps might work:

  1. Generate your rpm repository normally with createrepo . and hold onto the primary.xml.gz file
  2. Now remove the other repodata files and regenerate the repo metadata files with createrepo -s sha1 ..
  3. Substitute in the sha256 primary.xml.gz file for the sha1 one. Update repomd.xml to point to the new primary.xml.gz file and update the checksum as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants