From f373b09bf95865b5ea4167434a87c5d497d9df4b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 16 Dec 2007 19:40:50 -0500 Subject: loadstate needs to be called even if no pages are being built --- IkiWiki/Plugin/aggregate.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 0869d6d8f..68ff6a616 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -51,10 +51,11 @@ sub checkconfig () { #{{{ sub needsbuild (@) { #{{{ my $needsbuild=shift; + + loadstate(); # if not already loaded foreach my $page (keys %pagestate) { if (grep { $_ eq $pagesources{$page} } @$needsbuild) { - loadstate(); # if not already loaded # Mark all feeds originating on this page as removable; # preprocess will unmark those that still exist. remove_feeds($page); -- cgit v1.2.3