]> sipb.mit.edu Git - ikiwiki.git/commitdiff
autoindex: remove unnecessary special case for transient underlay
authorSimon McVittie <smcv@debian.org>
Mon, 9 Apr 2012 14:12:35 +0000 (15:12 +0100)
committerSimon McVittie <smcv@debian.org>
Fri, 4 Jul 2014 08:22:57 +0000 (09:22 +0100)
It's not clear that the transient underlay should be excluded from
indexing; see [[bugs/transient autocreated tagbase is not transient
autoindexed]].

In any case, the code that checks what directories might need indexes
specifically checks for the srcdir anyway, so the only effect this extra
check can have is negative (it could fail to notice files in the
transient underlay and attempt to recreate them unnecessarily).

IkiWiki/Plugin/autoindex.pm

index 78571b27677d4377892f8f9a451f1c87dbde365a..04d5014610dea28e1d069b67bb19601960c6284d 100644 (file)
@@ -71,7 +71,6 @@ sub refresh () {
 
        my (%pages, %dirs);
        foreach my $dir ($config{srcdir}, @{$config{underlaydirs}}, $config{underlaydir}) {
-               next if $dir eq $IkiWiki::Plugin::transient::transientdir;
                chdir($dir) || next;
 
                find({