recompute the memoization between the 2 passes because elements mights have been...
authorgc <gc>
Mon, 1 Aug 2005 21:30:00 +0000 (21:30 +0000)
committergc <gc>
Mon, 1 Aug 2005 21:30:00 +0000 (21:30 +0000)
bin/booh-backend

index 157e36ac34e32a2accb9e7edc5203c070fcac69f..ae81bc0fc4fbc8da43f7e1ec1b4b453010c2912a 100755 (executable)
@@ -891,6 +891,12 @@ def walk_source_dir
     info("creating index.html")
     msg 3, _("\trescanning directories to generate all `index.html' files...")
 
+    #- recompute the memoization because elements mights have been removed (the ones with no element in them)
+    optxpath = {}
+    $xmldoc.elements.each('//dir') { |elem|
+        optxpath[elem.attributes['path']] = elem
+    }
+
     examined_dirs.each { |dir|
         dir.chomp!
         info("index.html: #{dir}")