Changeset 805 for pypicache

Show
Ignore:
Timestamp:
09/29/07 21:24:40 (1 year ago)
Author:
robin
Message:

bugfix: reading distributions in binary mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pypicache/trunk/ChangeLog

    r620 r805  
    11.. _tickets: http://trac.wiretooth.com/public/ticket/ 
    22.. _ticket: http://trac.wiretooth.com/public/ticket/ 
     3 
     42007-09-29 Robin Bryce robinbryce@gmail.com 
     5    * Open distribution archives as 'binary mode files', this fixes a bug 
     6      with digest verification for windows users. Thanks to Christophe 
     7      Alexandre for both reporting the problem and for providing the fix. 
    38 
    492007-04-21 Robin Bryce robinbryce@gmail.com 
  • pypicache/trunk/indexpackages.py

    r620 r805  
    204204        distributions.add(dist_name) 
    205205        dist_added.append(dist) 
    206         content = file(abs_eggfn).read() 
     206        content = file(abs_eggfn, 'rb').read() 
    207207        md5_digest = md5(content).hexdigest() 
    208208        project_distributions.setdefault(dist.project_name, []).append( 
     
    267267 
    268268                md5_digest = md5( 
    269                         file(join(dirpath, candidate)).read() 
     269                        file(join(dirpath, candidate, 'rb')).read() 
    270270                        ).hexdigest() 
    271271                project_distributions.setdefault(