perl-CPAN-Meta-YAML/CPAN-Meta-YAML-0.004-old-Scalar::Util.patch
Paul Howarth 24eecf45cf Update to 0.004
- New upstream release 0.004
  - Generated from ADAMK/YAML-Tiny-1.50.tar.gz
- BR: perl(Test::Version) for additional test coverage
- Update patch for building with ExtUtils::MakeMaker < 6.30
- Add patch to support building with Test::More < 0.88
- Add patch to fix operation with Scalar::Util < 1.18
2011-09-07 14:26:44 +01:00

14 lines
420 B
Diff

This bug inherited from YAML::Tiny 1.50, which I'd forgotten to report upstream.
--- CPAN-Meta-YAML-0.004/lib/CPAN/Meta/YAML.pm
+++ CPAN-Meta-YAML-0.004/lib/CPAN/Meta/YAML.pm
@@ -615,7 +615,7 @@
require Scalar::Util;
};
if ( $@ or $Scalar::Util::VERSION < 1.18 ) {
- eval <<'END_PERL' if $@;
+ eval <<'END_PERL';
# Scalar::Util failed to load or too old
sub refaddr {
my $pkg = ref($_[0]) or return undef;