pld-builder.new: PLD_Builder/chroot.py - open in binary mode

arekm arekm at pld-linux.org
Tue Feb 27 13:21:01 CET 2007


Author: arekm                        Date: Tue Feb 27 12:21:01 2007 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
- open in binary mode

---- Files affected:
pld-builder.new/PLD_Builder:
   chroot.py (1.28 -> 1.29) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/chroot.py
diff -u pld-builder.new/PLD_Builder/chroot.py:1.28 pld-builder.new/PLD_Builder/chroot.py:1.29
--- pld-builder.new/PLD_Builder/chroot.py:1.28	Sun Feb 25 18:55:12 2007
+++ pld-builder.new/PLD_Builder/chroot.py	Tue Feb 27 13:20:55 2007
@@ -49,7 +49,7 @@
     marker_start = "--- FILE BEGIN DIGEST %s ---" % digest
     marker_end = "--- FILE END DIGEST %s ---" % digest
 
-    f = open(outfile, 'w')
+    f = open(outfile, 'wb')
     cmd = "echo \"%s\"; cat %s; echo \"%s\"" % (marker_start, file, marker_end)
     if rm:
         cmd += "; rm %s" % file
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/pld-builder.new/PLD_Builder/chroot.py?r1=1.28&r2=1.29&f=u



More information about the pld-cvs-commit mailing list