Author: poeml Date: Sat Sep 25 05:05:19 2010 New Revision: 8162 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8162&view=rev Log: mb makehashes: - The md5sum key in a torrent's info dictionary wasn't inserted in the right order (alphabetically). This change was needed for issue #78, in order to generate the same info dictionary as mod_mirrorbrain does now. 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=8162&r1=8161&r2=8162&view=diff ============================================================================== --- trunk/mb/mb/hashes.py (original) +++ trunk/mb/mb/hashes.py Sat Sep 25 05:05:19 2010 _at_@ -450,10 +450,10 @@ buf = ['d', '6:length', 'i', str(self.h.size), 'e', + '6:md5sum', str(MD5_DIGESTSIZE * 2), ':', self.md5hex, '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), - '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:05:21 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT