Author: poeml Date: Sat Sep 25 05:00:29 2010 New Revision: 8161 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8161&view=rev Log: mb makehashes: - same as in mod_mirrorbrain, the md5 key in torrents needs to be in hex, not binary. Issue #77. Modified: trunk/mb/mb/hashes.py Modified: trunk/mb/mb/hashes.py URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mb/mb/hashes.py?rev=8161&r1=8160&r2=8161&view=diff ============================================================================== --- trunk/mb/mb/hashes.py (original) +++ trunk/mb/mb/hashes.py Sat Sep 25 05:00:29 2010 _at_@ -453,7 +453,7 @@ '4:name', str(len(self.basename)), ':', self.basename, '12:piece length', 'i', str(self.chunk_size), 'e', '6:pieces', str(len(self.pieces) * SHA1_DIGESTSIZE), ':', ''.join(self.pieces), - '3:md5', str(MD5_DIGESTSIZE), ':', self.md5, + '6:md5sum', str(MD5_DIGESTSIZE * 2), ':', self.md5hex, '4:sha1', str(SHA1_DIGESTSIZE), ':', self.sha1, '6:sha256', str(SHA256_DIGESTSIZE), ':', self.sha256, 'e'] _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Sat Sep 25 2010 - 03:00:30 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT