[Zodb-checkins] CVS: ZODB3/Tools - repozo.py:1.1.2.8
Tim Peters
tim.one at comcast.net
Sat Aug 16 23:58:29 EDT 2003
Update of /cvs-repository/ZODB3/Tools
In directory cvs.zope.org:/tmp/cvs-serv11996/Tools
Modified Files:
Tag: ZODB3-3_1-branch
repozo.py
Log Message:
do_backup(): The .fs file must be opened in binary mode, explaining
catastrophic results on Windows.
=== ZODB3/Tools/repozo.py 1.1.2.7 => 1.1.2.8 ===
--- ZODB3/Tools/repozo.py:1.1.2.7 Sat Aug 16 22:46:03 2003
+++ ZODB3/Tools/repozo.py Sat Aug 16 22:58:24 2003
@@ -405,7 +405,7 @@
return
# Now check the md5 sum of the source file, from the last
# incremental's start and stop positions.
- srcfp = open(options.file)
+ srcfp = open(options.file, 'rb')
srcfp.seek(startpos)
srcsum = checksum(srcfp, endpos-startpos)
log('last incremental file: %s', fn)
@@ -428,7 +428,7 @@
# Get the md5 checksum of the source file, up to two file positions:
# the entire size of the file, and up to the file position of the last
# incremental backup.
- srcfp = open(options.file)
+ srcfp = open(options.file, 'rb')
srcsum = checksum(srcfp, srcsz)
srcfp.seek(0)
srcsum_backedup = checksum(srcfp, reposz)
More information about the Zodb-checkins
mailing list