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

checksum on a tarball? #9

Open
dagolden opened this issue Mar 18, 2014 · 1 comment
Open

checksum on a tarball? #9

dagolden opened this issue Mar 18, 2014 · 1 comment

Comments

@dagolden
Copy link

Could we make it easy to get the checksum on a tarball?

@karenetheridge
Copy link
Member

more breadcrumbs for later:

13:11 @xdg ether, see http://www.cpan.org/authors/id/E/ET/ETHER/CHECKSUMS
13:12 @xdg of course, having CHECKSUMS in a more easily searchable form would be nice
13:23 @ether xdg: right, so PAUSE already has checksums.. so the other part is an interface to calculate that on the client side, for comparing to (and, a nicer interface to fetch the checksum on PAUSE)
13:24 @xdg ether, path($tarball)->digest?
13:24 @xdg :-)
13:24 @xdg but, the github issue was to remind me to figure out how to make that checksum easier to retrieve
13:25 @xdg AUTHOR/TARBALL.md5 as a file would have been awfully convenient :-/
13:25 @xdg so we can fake it with CPAN::Common::Index
13:43 @ether xdg: I guess that was my point - it wasn't clear that that is indeed the mechanism by which the checksum is calculated
13:44 @ether that would do nicely as an interface in Dist::Metadata
13:57 @xdg ether, I'm not 100% sure, I'd have to check the CPAN.pm code
13:58 @xdg If not, we ought to get Andreas to calculate it the right way!
14:01 * xdg has checked. It looks like straightforward Digest::SHA 256bit check, albeit done in a roundabout way.
14:01 @xdg CPAN::Distribution::CHECKSUM_check_file is the sub if you want to see it

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

1 participant