]> sipb.mit.edu Git - ikiwiki.git/commitdiff
use perl YAML for dumping
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 24 Mar 2010 20:12:35 +0000 (16:12 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 24 Mar 2010 20:12:35 +0000 (16:12 -0400)
Only it understands $YAML::UseHeader

IkiWiki/Setup/Yaml.pm
debian/changelog

index 8ad44eb4afab294114ad1dad17f21c915794904a..8b876e297527af0de21bb8e70d63e5ddcbfdd14e 100644 (file)
@@ -19,10 +19,6 @@ sub loaddump ($$) {
 sub gendump ($@) {
        my $class=shift;
        
-       eval q{use YAML::Any};
-       eval q{use YAML} if $@;
-       die $@ if $@;
-
        "# IkiWiki::Setup::Yaml - YAML formatted setup file",
        "#",
        (map { "# $_" } @_),
@@ -37,7 +33,11 @@ sub dumpline ($$$$) {
        my $type=shift;
        my $prefix=shift;
        
+       eval q{use YAML::Old};
+       eval q{use YAML} if $@;
+       die $@ if $@;
        $YAML::UseHeader=0;
+
        my $dump=Dump({$key => $value});
        chomp $dump;
        if (length $prefix) {
index e7499b6f2bd139920d33c78e746f0d657656168a..12dd0dc02bcc66b15afa04dafb5986cb70fb5965 100644 (file)
@@ -1,4 +1,4 @@
-ikiwiki (3.20100320) UNRELEASED; urgency=low
+ikiwiki (3.20100324) UNRELEASED; urgency=low
 
   * websetup: Add websetup_unsafe to allow marking other settings
     as unsafe.