package/python-pyliftdi: fix patch
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 6 Mar 2017 17:17:23 +0000 (18:17 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 6 Mar 2017 20:14:14 +0000 (21:14 +0100)
The 0001 patch introduces leading tabs, when the rest of the file is
using leading spaces, and python3 does not like that.

Fixes:
    http://autobuild.buildroot.org/results/e24/e24a8e6f62139ab0efbce7a32c3d88c2cba839c6/
    http://autobuild.buildroot.org/results/7b1/7b14c4bb4cac3ff006e77330cbd7b839ad80192a/
    http://autobuild.buildroot.org/results/67c/67cddfdb801e83acfd9f197f5661fd43fa38a092/
    [...]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Christian Kellermann <christian.kellermann@solectrix.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python-pylibftdi/0001-do-not-use-find-library.patch

index ae8fe2dfad92da1f91b71167f5f691c455ab1145..192ed43e547d1fad553c47a2f5c9ae0522d09146 100644 (file)
@@ -24,7 +24,7 @@ diff -purN pylibftdi-0.15.0.orig/pylibftdi/driver.py pylibftdi-0.15.0/pylibftdi/
          if lib is None:
 -            raise LibraryMissingError('{} library not found (search: {})'.format(
 -                name, search_list))
-+              return cdll.LoadLibrary(name + '.so')
++            return cdll.LoadLibrary(name + '.so')
 +
          return lib