This is an automated email from the git hooks/post-receive script. gregoa pushed a commit to branch master in repository liblocales-perl.
commit 6a6921d1b9235445c2db25decf6011a674e1f69c Author: gregor herrmann <gre...@debian.org> Date: Mon Dec 28 02:48:06 2015 +0100 Add patch from upstream Git to fix deprecation warning under Perl 5.22. Closes: #809099 --- .../fix_deprecation_warning_under_perl_5.22.patch | 18 ++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 19 insertions(+) diff --git a/debian/patches/fix_deprecation_warning_under_perl_5.22.patch b/debian/patches/fix_deprecation_warning_under_perl_5.22.patch new file mode 100644 index 0000000..22023b7 --- /dev/null +++ b/debian/patches/fix_deprecation_warning_under_perl_5.22.patch @@ -0,0 +1,18 @@ +From 0a117fa210c30ecee5f0f5768c194a92e29b01a3 Mon Sep 17 00:00:00 2001 +From: Rufus Cable <ru...@threebytesfull.com> +Date: Thu, 30 Jul 2015 15:41:13 +0100 +Subject: [PATCH] Fix deprecation warning under Perl 5.22 +Bug-Debian: https://bugs.debian.org/809099 + + +--- a/lib/Locales.pm ++++ b/lib/Locales.pm +@@ -1013,7 +1013,7 @@ + sub plural_rule_string_to_javascript_code { + my ( $plural_rule_string, $return ) = @_; + my $perl = plural_rule_string_to_code( $plural_rule_string, $return ); +- $perl =~ s/sub { /function (n) {/; ++ $perl =~ s/sub \{ /function (n) {/; + $perl =~ s/\$_\[0\]/n/g; + $perl =~ s/ \(n \% ([0-9]+)\) \+ \(n-int\(n\)\) /n % $1/g; + $perl =~ s/int\(/parseInt\(/g; diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..38a423b --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix_deprecation_warning_under_perl_5.22.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/liblocales-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