Commits

Martin von Löwis  committed 7eb18bb

Re-enable md5 check.

  • Participants
  • Parent commits e599629

Comments (0)

Files changed (3)

 Changes
 -------
 
+1.5 (2011-05-09):
+
+- Fix mirroring bug that caused unnecessary deletion of files
+- Provide pep381checkfiles script to verify presence and integrity
+  of all files
+
 1.4 (2011-04-27):
 
 - Improve installation procedure (Jannis Leidel)

File pep381client/__init__.py

 pypi = 'pypi.python.org'
 BASE = 'http://'+pypi
 SIMPLE = BASE + '/simple/'
-version = '1.4'
+version = '1.5'
 UA = 'pep381client/'+version
 
 # Helpers

File scripts/pep381checkfiles

             incomplete_packages.add(package)
             print "Missing file", fn
             continue
-        #if "md5="+hashlib.md5(open(fn,'rb').read()).hexdigest() != md5:
-        #    print "Bad md5", fn
-        #    continue
+        if "md5="+hashlib.md5(open(fn,'rb').read()).hexdigest() != md5:
+            print "Bad md5", fn
+            continue
 
 if incomplete_packages:
     s = pep381client.Synchronization.load(targetdir)