[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Tweaks and fixes in response to integration tests.



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

Modified Files:
	DirMain.py 
Log Message:
Tweaks and fixes in response to integration tests.

ClientMain:
	- Give an actual URL and fingerprint for our (ersatz but operational) 
	  directory server.
	- Rename "servers" directory to "imported"; if we see any directories
	  named "servers" sitting around, gripe and try to remove them.
	- Check for expired or superseded descriptors on import.
	- Simplify "clean" logic a lot.
	- Fiddle with log messages and user-visible messages; add more warnings
	- Make the default path length configurable

ClientMain, Main:
	- Add 'import-server' command.

Common:
	- Only warn about fishy directory permissions once per directory.
	- Normalize paths before checking their permissions.
	- Use gzip a bit more pedantically.

test:
	- Remove a dead test

DirMain:
	- Use gzip a bit more pedantically.

ServerConfig, ServerMain:
	- Rename the confusing 'NoDaemon' option to 'Daemon' and flip its
	  semantics.

ServerConfig
	- Change the default MixAlgorithm from "Cottrell" to "Timed".




Index: DirMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/directory/DirMain.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- DirMain.py	3 Jan 2003 08:25:48 -0000	1.2
+++ DirMain.py	5 Jan 2003 04:29:11 -0000	1.3
@@ -87,7 +87,7 @@
         sys.stdout.write(d)
     elif rest[0].endswith(".gz"):
         fIn = open(fname)
-        fOut = gzip.GzipFile(rest[0], 'w')
+        fOut = gzip.GzipFile(rest[0], 'wb')
         fOut.write(fIn.read())
         fIn.close()
         fOut.close()