From: Joey Hess Date: Sun, 3 Feb 2008 08:25:47 +0000 (-0500) Subject: clear %pagestate in loadindex X-Git-Tag: 2.31~49 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=09187f83bc8e022df24de534861e4f6a6026b3f9;p=ikiwiki.git clear %pagestate in loadindex This is to handle the case where loadindex is called multiple times in one run, as when aggregating. --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 050d4e5b2..8172552cb 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -884,7 +884,7 @@ sub loadindex () { #{{{ %oldrenderedfiles=%pagectime=(); if (! $config{rebuild}) { %pagesources=%pagemtime=%oldlinks=%links=%depends= - %destsources=%renderedfiles=%pagecase=(); + %destsources=%renderedfiles=%pagecase=%pagestate=(); } open (my $in, "<", "$config{wikistatedir}/index") || return; while (<$in>) {