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

Add the payload digest #24

Merged
merged 3 commits into from
Oct 4, 2019
Merged

Conversation

djgilcrease
Copy link
Contributor

Add the payload digest so that on fedora you do not need to install the rpm with the --nodigest flags

Before change

$ rpm -Kv test.rpm
test.rpm:
    Header SHA256 digest: OK
    Payload SHA256 digest: NOTFOUND
    MD5 digest: NOTFOUND

After Changes

$ rpm -Kv test.rpm
test.rpm:
    Header SHA256 digest: OK
    Payload SHA256 digest: OK

jarondl added a commit to jarondl/rpmpack that referenced this pull request Oct 3, 2019
djgilcrease@ reported in google#24 that fedora installations currently fail
without passing in nodigest. That does seems to be true. I have
added a test case, that currently passes, but only because of the
`--nodigest` flag. Then as part of google#24 we can modify the testcase
to omit the flag.
@jarondl jarondl mentioned this pull request Oct 3, 2019
Copy link
Collaborator

@jarondl jarondl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
Looks good, except that I want to verify this solves this problem. Once #25 is in, I would like you to rebase to master, and then remove the nodigest flag from the fedora tests.

Thanks again.

…he rpm with the `--nodigest` flags

Before change
```
$ rpm -Kv test.rpm
test.rpm:
    Header SHA256 digest: OK
    Payload SHA256 digest: NOTFOUND
    MD5 digest: NOTFOUND
```

After Changes
```
$ rpm -Kv test.rpm
test.rpm:
    Header SHA256 digest: OK
    Payload SHA256 digest: OK
```
This should serve as a regression test with fedora and digests, see google#24
@jarondl jarondl merged commit 07246cf into google:master Oct 4, 2019
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

Successfully merging this pull request may close these issues.

2 participants