[packages/phpcs] - release 2, restore case-sensitive.patch
adamg
adamg at pld-linux.org
Mon Apr 8 08:35:32 CEST 2019
commit 00dc0c8c94a1bdeac0969948a31da49869f6942e
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Mon Apr 8 08:35:24 2019 +0200
- release 2, restore case-sensitive.patch
case-sensitive.patch | 11 +++++++++++
phpcs.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/phpcs.spec b/phpcs.spec
index 747e856..dc2fa51 100644
--- a/phpcs.spec
+++ b/phpcs.spec
@@ -9,11 +9,12 @@ Summary: PHP_CodeSniffer tokenises PHP code and detects violations of a defined
Summary(pl.UTF-8): PHP_CodeSniffer analizuje kod PHP pod kątem naruszeń zdefiniowanych standardów kodowania
Name: phpcs
Version: 3.4.0
-Release: 1
+Release: 2
License: BSD License
Group: Development/Languages/PHP
Source0: https://pear.php.net/get/%{pearname}-%{version}.tgz
# Source0-md5: daedf0015977e8d398f381bb2e05ae6b
+Patch0: case-sensitive.patch
URL: https://github.com/squizlabs/PHP_CodeSniffer
BuildRequires: php-pear-PEAR
BuildRequires: rpm-php-pearprov >= 4.4.2-11
@@ -51,6 +52,7 @@ przez programistów pewnych częstych błędów semantycznych.
%prep
%pear_package_setup
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/case-sensitive.patch b/case-sensitive.patch
new file mode 100644
index 0000000..e558ae2
--- /dev/null
+++ b/case-sensitive.patch
@@ -0,0 +1,11 @@
+--- PHP_CodeSniffer-3.4.0/usr/share/pear/PHP/CodeSniffer/src/Filters/Filter.php~ 2018-12-20 00:57:58.000000000 +0100
++++ PHP_CodeSniffer-3.4.0/usr/share/pear/PHP/CodeSniffer/src/Filters/Filter.php 2019-04-08 08:28:26.042280047 +0200
+@@ -256,7 +256,7 @@
+ $testPath = $path;
+ }
+
+- $pattern = '`'.$pattern.'`i';
++ $pattern = '`'.$pattern.'`';
+ if (preg_match($pattern, $testPath) === 1) {
+ return true;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/phpcs.git/commitdiff/00dc0c8c94a1bdeac0969948a31da49869f6942e
More information about the pld-cvs-commit
mailing list