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

Change pkg check -r to also update file checksums. #247

Merged
merged 1 commit into from May 30, 2012

Conversation

rg1
Copy link
Contributor

@rg1 rg1 commented May 30, 2012

This is an attempt to allow fixing of checksums with pkgng.

Since I couldn't find any example of altering an installed package, I wrote a specialized function that simply updates the sha256 for a file. I'm wondering if a more general approach to altering a package might be appropriate, but I got the impression this is not desired anyway.

I also think that having pkg check actually alter data is a bit counter-intuitive. But since it was already altering the size and it was suggested on irc, I've just extended it (and moved some stuff around to fit). After all, why would the size change but not the checksums?

Please let me know what you think and if you'd like me to change anything.

bapt pushed a commit that referenced this pull request May 30, 2012
Change pkg check -r to also update file checksums.
@bapt bapt merged commit 737b7f4 into freebsd:master May 30, 2012
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.

None yet

2 participants