X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/285be77f17a6efb7633242a0febcadf511f61c10..870adf3bbf459e3f234fb06322b750582ab47912:/IkiWiki/Plugin/aggregate.pm diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 09ea59029..2a4d10411 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{$feed->{sourcepage}} && + 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});