fix handling of links+content dependency
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 6 Oct 2009 08:45:57 +0000 (04:45 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 6 Oct 2009 08:45:57 +0000 (04:45 -0400)
Such a dependency is unlikely, but can happen.

IkiWiki/Render.pm

index 7f311ddf90def48b7ec47e56f9a7f6c430cadc58..e863141070b802db6b2f824c65fe0ca9e8afe1e5 100644 (file)
@@ -570,7 +570,8 @@ sub render_dependent ($$$$$$$) {
                                        next if $file eq $f;
                                        my $page=pagename($file);
                                        if ($sub->($page, location => $p)) {
-                                               if ($depends{$p}{$d} & $IkiWiki::DEPEND_LINKS) {
+                                               if ($depends{$p}{$d} & $IkiWiki::DEPEND_LINKS &&
+                                                   ! $depends{$p}{$d} & $IkiWiki::DEPEND_CONTENT) {
                                                        next unless $linkchangers->{lc($page)};
                                                }
                                                $reason = $page;