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