From a71b92ed5c5572a1384367f8a90e1fc489b3c660 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 21 Apr 2010 15:59:39 -0400 Subject: [PATCH] remember autofiles always This fixes the problem that it did not remember if an autofile is deleted, unless a plugin happened to register the autofile at the same time. With the new code, we just never recreate an autofile more than once. Only downside is that the list of autofiles is never pruned either. And I don't really see a way to prune it. --- IkiWiki/Render.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 09c9121f3..b3afabf32 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -692,7 +692,7 @@ sub gen_autofile ($$$) { } if ((!defined $file) || - (exists $wikistate{$autofiles{$autofile}{plugin}}{deleted_autofile}{$autofile})) { + (exists $wikistate{$autofiles{$autofile}{plugin}}{autofile}{$autofile})) { return; } @@ -702,11 +702,11 @@ sub gen_autofile ($$$) { } if (grep { $_ eq $autofile } @$del) { - $wikistate{$autofiles{$autofile}{plugin}}{deleted_autofile}{$autofile}=1; return; } $autofiles{$autofile}{generator}->(); + $wikistate{$autofiles{$autofile}{plugin}}{autofile}{$autofile}=1; $pages->{$page}=1; return 1; } -- 2.44.0