diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-03-26 01:38:53 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-03-26 01:38:53 -0400 |
commit | 0d524ad672333fd0bafa64e81e261fd297c25580 (patch) | |
tree | 0516c0ef5a8deecd61a25bd004766a273803ca7d /IkiWiki.pm | |
parent | 4cb464d6e52344b8a0dfd29e82ede78aef1385d3 (diff) | |
download | ikiwiki-0d524ad672333fd0bafa64e81e261fd297c25580.tar ikiwiki-0d524ad672333fd0bafa64e81e261fd297c25580.tar.gz |
Fix incorrect influence info returned by a failing link() pagespec, that could lead to bad dependency handling in certian situations.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 022bfe3bd..927d62940 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -2215,7 +2215,7 @@ sub match_link ($$;@) { my $from=exists $params{location} ? $params{location} : ''; my $links = $IkiWiki::links{$page}; - return IkiWiki::FailReason->new("$page has no links", "" => 1) + return IkiWiki::FailReason->new("$page has no links", $page => $IkiWiki::DEPEND_LINKS, "" => 1) unless $links && @{$links}; my $bestlink = IkiWiki::bestlink($from, $link); foreach my $p (@{$links}) { @@ -2232,7 +2232,7 @@ sub match_link ($$;@) { if match_glob($p_rel, $link, %params); } } - return IkiWiki::FailReason->new("$page does not link to $link", "" => 1); + return IkiWiki::FailReason->new("$page does not link to $link", $page => $IkiWiki::DEPEND_LINKS, "" => 1); } sub match_backlink ($$;@) { |