From 09187f83bc8e022df24de534861e4f6a6026b3f9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 3 Feb 2008 03:25:47 -0500 Subject: [PATCH] clear %pagestate in loadindex This is to handle the case where loadindex is called multiple times in one run, as when aggregating. --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>) { -- 2.26.2