From 178b9e4a14e8ea6fa415c3c36461e41da8434694 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 3 Mar 2014 12:16:21 +0100 Subject: ymlfront: Force use of YAML::Syck. --- .library/IkiWiki/Plugin/ymlfront.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '.library') diff --git a/.library/IkiWiki/Plugin/ymlfront.pm b/.library/IkiWiki/Plugin/ymlfront.pm index 9c033833..cbd80e32 100644 --- a/.library/IkiWiki/Plugin/ymlfront.pm +++ b/.library/IkiWiki/Plugin/ymlfront.pm @@ -20,7 +20,7 @@ our $VERSION = '1.20101116'; IkiWiki IkiWiki::Plugin::field - YAML::Any + YAML::Syck =head1 AUTHOR @@ -95,11 +95,12 @@ sub getsetup () { } sub checkconfig () { - eval q{use YAML::Any}; - eval q{use YAML} if $@; + # If installed, YAML::XS apparently is used by default -- but doesn't seem + # to work here. + eval q{use YAML::Syck}; if ($@) { - return error ("ymlfront: failed to use YAML::Any or YAML"); + return error ("ymlfront: failed to use YAML::Syck"); } $YAML::UseBlock = 1; -- cgit v1.2.3