This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libtypes-datetime-perl.

commit f36274ce3b6d2381516d0f554452cd6a7435d1db
Author: Jonas Smedegaard <d...@jones.dk>
Date:   Sat Nov 21 20:59:25 2015 +0100

    Add patch 1001 to fix tests to pass with both new and old DateTime::Locale 
versions.
---
 debian/patches/1001_DateTime-Locale_new_isa.patch | 43 +++++++++++++++++++++++
 debian/patches/README                             |  3 ++
 debian/patches/series                             |  1 +
 3 files changed, 47 insertions(+)

diff --git a/debian/patches/1001_DateTime-Locale_new_isa.patch 
b/debian/patches/1001_DateTime-Locale_new_isa.patch
new file mode 100644
index 0000000..0ad9809
--- /dev/null
+++ b/debian/patches/1001_DateTime-Locale_new_isa.patch
@@ -0,0 +1,43 @@
+Description: Fix tests to pass with both new and old DateTime::Locale versions
+ In addition to test fixes, the isa in code also needed fixing - not
+ sure how to do that backwards-compatible so that part requires recent
+ DateTime::Locale for now...
+Origin: vendor, https://github.com/tobyink/p5-types-datetime/pull/1
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=72636
+Bug-Debian: http://bugs.debian.org/805387
+Author: Dave Rolsky <auta...@urth.org>
+Author: Jonas Smedegaard <d...@jones.dk>
+Reviewed-by: Jonas Smedegaard <d...@jones.dk>
+Last-Update: 2015-11-21
+
+--- a/t/02mxtdt.t
++++ b/t/02mxtdt.t
+@@ -120,7 +120,7 @@
+       
+       my $loc = Gorch->new( loc => "he_IL" )->loc;
+       
+-      isa_ok( $loc, "DateTime::Locale::he", "coerced from string" );
++      like( $loc->id, qr/he[_\-]IL/, "coerced from string" );
+       
+       like(exception { Gorch->new( loc => "not_a_place_or_a_locale" ) }, 
qr/Invalid locale/, "bad locale name");
+       
+@@ -143,7 +143,7 @@
+               
+               isa_ok( $handle, "Some::L10N", "maketext handle" );
+               
+-              isa_ok( Gorch->new( loc => $handle )->loc, 
"DateTime::Locale::ja", "coerced from maketext" );;
++              is( Gorch->new( loc => $handle )->loc->id, "ja", "coerced from 
maketext" );;
+       }
+ }
+ 
+--- a/lib/Types/DateTime.pm
++++ b/lib/Types/DateTime.pm
+@@ -26,7 +26,7 @@
+ class_type(DateTime, { class => 'DateTime' });
+ class_type(Duration, { class => 'DateTime::Duration' });
+ class_type(TimeZone, { class => 'DateTime::TimeZone' });
+-class_type(Locale,   { class => 'DateTime::Locale::root' });
++class_type(Locale,   { class => 'DateTime::Locale::FromData' });
+ enum(Now, ['now']);
+ 
+ coerce DateTime,
diff --git a/debian/patches/README b/debian/patches/README
new file mode 100644
index 0000000..80c1584
--- /dev/null
+++ b/debian/patches/README
@@ -0,0 +1,3 @@
+0xxx: Grabbed from upstream development.
+1xxx: Possibly relevant for upstream adoption.
+2xxx: Only relevant for official Debian release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5572c79
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1001_DateTime-Locale_new_isa.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libtypes-datetime-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to