X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/285be77f17a6efb7633242a0febcadf511f61c10..7a40bcab9a223d29189632cb05d26bc558927520:/IkiWiki/Plugin/aggregate.pm diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 09ea59029..c3cbbae05 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -42,7 +42,7 @@ sub checkconfig () { #{{{ # The parent process will then handle building the result. # This avoids messy code to clear state accumulated while # aggregating. - defined(my $pid = fork) or error("Can’t fork: $!"); + defined(my $pid = fork) or error("Can't fork: $!"); if (! $pid) { loadstate(); IkiWiki::loadindex(); @@ -66,7 +66,8 @@ sub needsbuild (@) { #{{{ loadstate(); # if not already loaded foreach my $feed (values %feeds) { - if (grep { $_ eq $pagesources{$feed->{sourcepage}} } @$needsbuild) { + if (exists $pagesources{$page} && + grep { $_ eq $pagesources{$feed->{sourcepage}} } @$needsbuild) { # Mark all feeds originating on this page as removable; # preprocess will unmark those that still exist. remove_feeds($feed->{sourcepage});