krobertson/deb-s3 — pull request #38 by yannh (2014-06-10 12:11:08+00:00)
Title: Fixes #37: Stores checksum in metadata

I admit I've not been able to reliably compute the etag generated by AWS - the values returned by scripts I found online, or reproducing the algorithms manually, or writing my own scripts just didn't match the etag from files uploaded by deb-s3.

Even though that might have been practical, the way AWS computes it is still officially "undocumented" and I've seen many people recommending using metadata to store the md5 instead.

Here is a patch that adds a "md5" metadata to the files uploaded by deb-s3 and compares against this (and the etag, for backward compatibility).