[arch-commits] Commit in flake8/trunk (PKGBUILD pycodestyle-2.1.patch)

Felix Yan felixonmars at archlinux.org
Mon Nov 7 05:42:08 UTC 2016


    Date: Monday, November 7, 2016 @ 05:42:07
  Author: felixonmars
Revision: 194847

upgpkg: flake8 1:3.0.4-2

add a patch for pycodestyle-2.1

Added:
  flake8/trunk/pycodestyle-2.1.patch
Modified:
  flake8/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   11 ++++++++---
 pycodestyle-2.1.patch |   10 ++++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-07 05:12:05 UTC (rev 194846)
+++ PKGBUILD	2016-11-07 05:42:07 UTC (rev 194847)
@@ -7,7 +7,7 @@
 pkgbase=flake8
 pkgname=(flake8 python2-flake8)
 pkgver=3.0.4
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc="The modular source code checker: pep8, pyflakes and co"
 arch=('any')
@@ -18,10 +18,15 @@
              'python2-enum34' 'python2-configparser' 'python-pytest-runner' 'python2-pytest-runner'
              'git')
 checkdepends=('python-mock' 'python2-mock')
-source=("git+https://gitlab.com/pycqa/flake8.git#tag=$pkgver")
-md5sums=('SKIP')
+source=("git+https://gitlab.com/pycqa/flake8.git#tag=$pkgver"
+        pycodestyle-2.1.patch)
+md5sums=('SKIP'
+         'aa1c184ffea3f79f4c53f3ad459ba6a4')
 
 prepare() {
+  # FS#51728
+  (cd flake8/src/flake8; patch -p1 -i "$srcdir"/pycodestyle-2.1.patch)
+
   sed -i -e 's/, *< *[0-9=.]*//' flake8/setup.py
   cp -a flake8{,-py2}
 }

Added: pycodestyle-2.1.patch
===================================================================
--- pycodestyle-2.1.patch	                        (rev 0)
+++ pycodestyle-2.1.patch	2016-11-07 05:42:07 UTC (rev 194847)
@@ -0,0 +1,10 @@
+--- a/processor.py	2016-08-08 20:35:49.000000000 +0800
++++ b/processor.py	2016-11-07 13:15:49.496852642 +0800
+@@ -98,6 +98,7 @@
+         self.statistics = {
+             'logical lines': 0,
+         }
++        self.previous_unindented_logical_line = ''
+ 
+     @contextlib.contextmanager
+     def inside_multiline(self, line_number):



More information about the arch-commits mailing list