gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r209878 - /gump/branches/Gump3/pygump/python/gump/engine/normalizer.py
Date Fri, 08 Jul 2005 20:27:14 GMT
Author: leosimons
Date: Fri Jul  8 13:27:12 2005
New Revision: 209878

URL: http://svn.apache.org/viewcvs?rev=209878&view=rev
Log:
Don't drop projects without a module from the normalizer

Modified:
    gump/branches/Gump3/pygump/python/gump/engine/normalizer.py

Modified: gump/branches/Gump3/pygump/python/gump/engine/normalizer.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/engine/normalizer.py?rev=209878&r1=209877&r2=209878&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/engine/normalizer.py (original)
+++ gump/branches/Gump3/pygump/python/gump/engine/normalizer.py Fri Jul  8 13:27:12 2005
@@ -270,17 +270,17 @@
         projects = self._get_list_merged_by_name("project")
         exclude = ["project", "module", "repository"];
         for project in projects:
+            clone = project.cloneNode(True)
+            self._clean_out_by_tag( clone, exclude )
+
             module = self._find_module_for_project(project)
             if not module:
                 name = project.getAttribute("name")
-                self.log.warn("Dropping project '%s' because no corresponding module could
be found!" % name)
-                continue
-            
-            clone = project.cloneNode(True)
-            self._clean_out_by_tag( clone, exclude )
-            moduleref = self.newdoc.createElement("module")
-            moduleref.setAttribute("name", module.getAttribute("name") )
-            clone.insertBefore(moduleref, clone.firstChild)
+                self.log.warn("Project '%s' does not have a corresponding module!" % name)
+            else:
+                moduleref = self.newdoc.createElement("module")
+                moduleref.setAttribute("name", module.getAttribute("name") )
+                clone.insertBefore(moduleref, clone.firstChild)
             
             self.projects.appendChild(clone)
     



Mime
View raw message