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

[minion-cvs] Backport -R fix to maintenance branch



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

Modified Files:
      Tag: mixminion-v0-0-6-patches
	ClientMain.py 
Log Message:
Backport -R fix to maintenance branch

Index: ClientMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientMain.py,v
retrieving revision 1.138.2.1
retrieving revision 1.138.2.2
diff -u -d -r1.138.2.1 -r1.138.2.2
--- ClientMain.py	15 Dec 2003 19:22:05 -0000	1.138.2.1
+++ ClientMain.py	15 Dec 2003 22:46:15 -0000	1.138.2.2
@@ -717,7 +717,7 @@
     def __init__(self, opts,
                  wantConfig=0, wantClientDirectory=0, wantClient=0, wantLog=0,
                  wantDownload=0, wantForwardPath=0, wantReplyPath=0,
-                 minHops=0):
+                 minHops=0, ignoreOptions=[]):
         """Parse the command line options 'opts' as returned by getopt.getopt.
 
            wantConfig -- If true, accept options pertaining to the config file,
@@ -770,6 +770,7 @@
         self.forceNoQueue = None
 
         for o,v in opts:
+            if o in ignoreOptions: continue
             if o in ('-h', '--help'):
                 raise UsageError()
             elif o in ('-f', '--config'):
@@ -1294,7 +1295,8 @@
     try:
         parser = CLIArgumentParser(options, wantConfig=1,
                                    wantClientDirectory=1,
-                                   wantLog=1, wantDownload=1)
+                                   wantLog=1, wantDownload=1,
+                                   ignoreOptions=['-R'])
     except UsageError, e:
         e.dump()
         print _LIST_SERVERS_USAGE % {'cmd' : cmd}