mtd/scripts treewalk.py,1.3,1.4

gleixner at infradead.org gleixner at infradead.org
Tue Mar 15 03:46:11 EST 2005


Update of /home/cvs/mtd/scripts
In directory phoenix.infradead.org:/tmp/cvs-serv13818

Modified Files:
	treewalk.py 
Log Message:
Validate _all_ actions against the commandline selections

Index: treewalk.py
===================================================================
RCS file: /home/cvs/mtd/scripts/treewalk.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- treewalk.py	14 Mar 2005 16:54:48 -0000	1.3
+++ treewalk.py	15 Mar 2005 08:46:08 -0000	1.4
@@ -493,13 +493,16 @@
 	cmdline_actdict[act] = act
 
 
+# Validate actions against depends and except
+for action in actions.keys():
+	actions[action].validateOptions(cmdline_actdict)
+
 # Build default actions list
 #  - order by configured actionsorder
-#  - validate against commandline options
 for action in default_actionorder:
 	if not actions.has_key(action):
 		continue
-	if actions[action].validateOptions(cmdline_actdict) == 0:
+	if not actions[action].isActive():
 		continue
 	default_actions[len(default_actions):] = [actions[action]]
 





More information about the linux-mtd-cvs mailing list