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

[minion-cvs] Check for obsolete 0.0.6alpha1 servers correctly



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

Modified Files:
	ServerInfo.py 
Log Message:
Check for obsolete 0.0.6alpha1 servers correctly

Index: ServerInfo.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ServerInfo.py,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- ServerInfo.py	28 Nov 2003 04:14:04 -0000	1.65
+++ ServerInfo.py	3 Dec 2003 23:14:26 -0000	1.66
@@ -46,7 +46,6 @@
        's' must be one of: None, IPV4Info, MMTPHostInfo, ServerInfo,
        string.
     """
-    #XXXX006 unit tests are needed
     if isinstance(s, types.StringType):
         return s
     elif isinstance(s, ServerInfo):
@@ -314,7 +313,7 @@
            version 0.0.5 or earlier.)"""
         #XXXX006 remove this.  0.0.6alpha1 could crash when it got hostnames.
         #XXXX006 Sadly, some people installed it anyway.
-        if self['Server'].get("Software","").startswith("0.0.6alpha1"):
+        if self['Server'].get("Software","").endswith("0.0.6alpha1"):
             return None
         return self['Incoming/MMTP'].get("Hostname")