[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Start making stuff work on win32 -- much more work need...



Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv16360/lib/mixminion/server

Modified Files:
	HashLog.py ServerKeys.py 
Log Message:
Start making stuff work on win32 -- much more work needed, but at least it builds and passes all but 5 tests

Index: HashLog.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/HashLog.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- HashLog.py	8 Jul 2003 19:13:50 -0000	1.18
+++ HashLog.py	10 Jul 2003 20:01:31 -0000	1.19
@@ -77,7 +77,7 @@
         
 
 # flags to pass to os.open when opening the journal file.
-_JOURNAL_OPEN_FLAGS = os.O_WRONLY|os.O_CREAT|getattr(os,'O_SYNC',0)
+_JOURNAL_OPEN_FLAGS = os.O_WRONLY|os.O_CREAT|getattr(os,'O_SYNC',0)|getattr(os,'O_BINARY',0)
 class HashLog:
     """A HashLog is a file containing a list of message digests that we've
        already processed.

Index: ServerKeys.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/ServerKeys.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- ServerKeys.py	7 Jul 2003 16:49:25 -0000	1.46
+++ ServerKeys.py	10 Jul 2003 20:01:31 -0000	1.47
@@ -1144,7 +1144,11 @@
         
 def getPlatformSummary():
     """XXXX005 move; DOCDOC"""
-    uname = " ".join(os.uname())
+    if hasattr(os, "uname"):
+        uname = " ".join(os.uname())
+    else:
+        uname = sys.platform
+
     return "Mixminion %s; Python %r on %r" % (
         mixminion.__version__, sys.version, uname)