]> git.pld-linux.org Git - packages/phpcs.git/commitdiff
- release 2, restore case-sensitive.patch auto/th/phpcs-3.4.0-2
authorAdam Gołębiowski <adamg@pld-linux.org>
Mon, 8 Apr 2019 06:35:24 +0000 (08:35 +0200)
committerAdam Gołębiowski <adamg@pld-linux.org>
Mon, 8 Apr 2019 06:35:24 +0000 (08:35 +0200)
case-sensitive.patch [new file with mode: 0644]
phpcs.spec

diff --git a/case-sensitive.patch b/case-sensitive.patch
new file mode 100644 (file)
index 0000000..e558ae2
--- /dev/null
@@ -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;
+             }
index 747e85690f0519d4a4c89cf3dbe834e7866f5e69..dc2fa51608c6f8a88623789cac4757f25197a2da 100644 (file)
@@ -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
 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
 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
 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
 
 %prep
 %pear_package_setup
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.048588 seconds and 4 git commands to generate.