[Zope3-checkins] CVS: Zope3/src/zope/fssync - fssync.py:1.18
Guido van Rossum
guido@python.org
Wed, 14 May 2003 21:58:02 -0400
Update of /cvs-repository/Zope3/src/zope/fssync
In directory cvs.zope.org:/tmp/cvs-serv5783
Modified Files:
fssync.py
Log Message:
The last refactoring had left the diff command dysfunctional.
=== Zope3/src/zope/fssync/fssync.py 1.17 => 1.18 ===
--- Zope3/src/zope/fssync/fssync.py:1.17 Wed May 14 21:55:08 2003
+++ Zope3/src/zope/fssync/fssync.py Wed May 14 21:58:01 2003
@@ -379,7 +379,7 @@
orig = fsutil.getoriginal(target)
if not isfile(orig):
raise Error("can't find original for diff target '%s'", target)
- if self.cmp(target, orig):
+ if filecmp.cmp(target, orig, shallow=False):
return
print "Index:", target
sys.stdout.flush()