Use chunk checksums in metalinks to repair downloads
Brought to you by:
alervd
Most Metalinks contain chunk checksums. Like those included in torrents, they allow downloads to be automatically repaired.
Here are some examples, and what they look like:
http://download.packages.ro/metalink/debian/collections/debian-4.0-r0-i386-cd.metalink
http://download.packages.ro/metalink/opensuse/collections/OpenSuSE-10.2-i386.metalink
<pieces length="4194304" type="sha1">
<hash piece="0">a8121a4fdd4b2c05079f706618cae406d76c1d63</hash>
<hash piece="1">76bf2206c18626ccbd5052199c15bb50daff7d47</hash>
<hash piece="2">8eba04c58fb9ec4bbd263741559a2d5348948998</hash>
...
</pieces>