]> sipb.mit.edu Git - ikiwiki.git/commitdiff
linkmap: does need presence deps
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 6 Oct 2009 23:24:17 +0000 (19:24 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 6 Oct 2009 23:28:52 +0000 (19:28 -0400)
Otherwise, removal of a page with no links will not be noticed,
since no links will change.

IkiWiki/Plugin/linkmap.pm
debian/changelog

index b8b4cf40dde9b3aa22d3886f92dc7303e459dc97..d7ba68da9e91133c33bbef0f743430f5fd0993b0 100644 (file)
@@ -28,8 +28,9 @@ sub preprocess (@) {
 
        $params{pages}="*" unless defined $params{pages};
        
-       # Needs to update whenever a relevant page's links change.
-       add_depends($params{page}, $params{pages}, links => 1);
+       # Needs to update whenever a relevant page is added, or removed, or
+       # its links change.
+       add_depends($params{page}, $params{pages}, presence => 1, links => 1);
        
        # Can't just return the linkmap here, since the htmlscrubber
        # scrubs out all <object> tags (with good reason!)
index a006d31771c763b0d8cc0f693e90628e76efca94..dc6ee0a81c2e6da02f5f47014e4a25b57d0c3af8 100644 (file)
@@ -27,8 +27,8 @@ ikiwiki (3.14159266) UNRELEASED; urgency=low
     where if only a small set of pages were considered by orphans/pagestats,
     changes to links on other pages failed to cause an update.
   * linkmap: Use a combination of presence and link dependencies.
-    This makes the map be regenerated much less frequently, so larger
-    maps are more practical to use now.
+    This makes the map be regenerated much less frequently in many cases,
+    so larger maps are more practical to use now.
   * Transitive dependencies are now correctly supported.
   * Rebuild wikis on upgrade to this version to get improved dependency
     info.