[pangzero] 67/68: Add unescaped-left-brace-in-regex.patch

Markus Koschany apo at moszumanska.debian.org
Wed Jun 8 06:58:42 UTC 2016


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

apo pushed a commit to branch master
in repository pangzero.

commit 5cc841300bb804d1bb7ccc33f8de20f065dd454e
Author: Markus Koschany <apo at debian.org>
Date:   Wed Jun 8 08:38:06 2016 +0200

    Add unescaped-left-brace-in-regex.patch
---
 debian/patches/series                              |  1 +
 debian/patches/unescaped-left-brace-in-regex.patch | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 0207a1e..1f6e603 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 10_nowebpage.patch
+unescaped-left-brace-in-regex.patch
diff --git a/debian/patches/unescaped-left-brace-in-regex.patch b/debian/patches/unescaped-left-brace-in-regex.patch
new file mode 100644
index 0000000..b47612b
--- /dev/null
+++ b/debian/patches/unescaped-left-brace-in-regex.patch
@@ -0,0 +1,24 @@
+From: Markus Koschany <apo at debian.org>
+Date: Wed, 8 Jun 2016 08:37:41 +0200
+Subject: unescaped left brace in regex
+
+Fix deprecation warning for unescaped left brace in regex which will become
+fatal with Perl 5.26.
+
+Forwarded: https://github.com/kthakore/pangzero/issues/4
+---
+ lib/Games/PangZero/Config.pm | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/Games/PangZero/Config.pm b/lib/Games/PangZero/Config.pm
+index eb26d05..72a9c4f 100644
+--- a/lib/Games/PangZero/Config.pm
++++ b/lib/Games/PangZero/Config.pm
+@@ -104,6 +104,7 @@ sub LoadConfig {
+   foreach $varname (GetConfigVars()) {
+     my $pattern = $varname;
+     $pattern    =~ s/\[/\\[/g;
++    $pattern    =~ s/\{/\\{/g;
+     if ($text =~ /$pattern = (.+?)$/m) {
+       $val = $1;
+       if ($varname eq Games::PangZero::ShowWebsite) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/pangzero.git



More information about the Pkg-games-commits mailing list