Subject: | yaml returns ARRAY |
My YAML-Syck-1.07 returns an arrayref for Load(io($metadata)->all) (a
proper .svn/bisect.yaml), so I suggest the following patch:
diff -u lib/App/SVN/Bisect.pm~ lib/App/SVN/Bisect.pm
--- lib/App/SVN/Bisect.pm~ 2009-12-04 16:57:40.000000000 +0100
+++ lib/App/SVN/Bisect.pm 2010-07-28 11:49:15.524070900 +0200
@@ -80,7 +80,8 @@
if($actions{$action}{read_config}) {
die("A bisect is not in progress! Try \"$0 help start\".\n")
unless -f $metadata;
- $$self{config} = Load(io($metadata)->all);
+ my $yaml = Load(io($metadata)->all);
+ $$self{config} = ref $yaml eq 'ARRAY' ? $yaml->[0] : $yaml;
}
return bless($self, $package);
}
--
Reini Urban