fix handling of links+content dependency

Such a dependency is unlikely, but can happen.
master
Joey Hess 2009-10-06 04:45:57 -04:00
parent 2a0e6b782c
commit 2494a23fdd
1 changed files with 2 additions and 1 deletions

View 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;