[Zope3-checkins] CVS: Zope3/utilities/fssync - diff.py:1.6
Guido van Rossum
guido@python.org
Tue, 6 May 2003 15:12:47 -0400
Update of /cvs-repository/Zope3/utilities/fssync
In directory cvs.zope.org:/tmp/cvs-serv21088
Modified Files:
diff.py
Log Message:
Use commands.mkargs() here too.
=== Zope3/utilities/fssync/diff.py 1.5 => 1.6 ===
--- Zope3/utilities/fssync/diff.py:1.5 Mon May 5 17:53:13 2003
+++ Zope3/utilities/fssync/diff.py Tue May 6 15:12:46 2003
@@ -64,7 +64,8 @@
os.path.basename(targetfile))
to_file = temp_file
- diff_cmd ="diff -a -b -B -c %s %s" % (from_file, to_file)
+ diff_cmd ="diff -a -b -B -c %s %s" % (commands.mkarg(from_file),
+ commands.mkarg(to_file))
diff_res = commands.getoutput(diff_cmd)
diff_res = setOutput(diff_res, temp_file, objectpath, modification_date)
print diff_res