1 The map() function used in the hyperestraier search plug-in doesn't work as intended as ilustrated by this simple script:
9 # similar to current ikiwiki code (defective):
10 my @bar = map { "/path/to/$_" foreach @{$_} } @foo;
12 #my @bar = map { map { "/path/to/$_" } @{$_} } @foo;
26 Useless use of string in void context at perl-map.pl line 10.
28 The patch below fixes this issue:
30 --- IkiWiki/Plugin/search.pm.orig Thu Feb 1 23:52:03 2007
31 +++ IkiWiki/Plugin/search.pm Thu Feb 1 23:52:41 2007
33 debug(gettext("updating hyperestraier search index"));
34 estcmd("gather -cm -bc -cl -sd",
36 - Encode::encode_utf8($config{destdir}."/".$_)
37 - foreach @{$renderedfiles{pagename($_)}};
39 + Encode::encode_utf8($config{destdir}."/".$_)
40 + } @{$renderedfiles{pagename($_)}};