[arch-commits] Commit in python-augeas/trunk (PKGBUILD issue26.patch)

Felix Yan felixonmars at archlinux.org
Thu May 18 05:21:28 UTC 2017


    Date: Thursday, May 18, 2017 @ 05:21:27
  Author: felixonmars
Revision: 228431

upgpkg: python-augeas 1.0.2-2

Added:
  python-augeas/trunk/issue26.patch
Modified:
  python-augeas/trunk/PKGBUILD

---------------+
 PKGBUILD      |   14 +++++++++++---
 issue26.patch |   13 +++++++++++++
 2 files changed, 24 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-18 05:21:00 UTC (rev 228430)
+++ PKGBUILD	2017-05-18 05:21:27 UTC (rev 228431)
@@ -4,7 +4,7 @@
 
 pkgname=python-augeas
 pkgver=1.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Python bindings for Augeas"
 arch=('any')
 license=('LGPL')
@@ -11,9 +11,17 @@
 url="http://augeas.net"
 depends=('augeas' 'python-cffi')
 makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/p/python-augeas/python-augeas-$pkgver.tar.gz")
-sha512sums=('c24c8f01420ca474be2903d3da35a246fa74f5ae848bb9267bf4a2166d3a4c64fa4d29a1c5aad6dac3c43251cda90673d6a5a72e6ebdd192e147baa03281e727')
+source=("https://files.pythonhosted.org/packages/source/p/python-augeas/python-augeas-$pkgver.tar.gz"
+        issue26.patch)
+sha512sums=('c24c8f01420ca474be2903d3da35a246fa74f5ae848bb9267bf4a2166d3a4c64fa4d29a1c5aad6dac3c43251cda90673d6a5a72e6ebdd192e147baa03281e727'
+            'b59554d38a63f6ad944827e8cacb2631ea8996a1e58620447635cdf9aadc33d04c40651680f1b0252265b4940ff15534c879e5ea2484ce394b0ba76c0bc5ba81')
 
+prepare() {
+  cd python-augeas-$pkgver
+  # https://github.com/hercules-team/python-augeas/issues/26
+  patch -p1 -i ../issue26.patch
+}
+
 build() {
   cd python-augeas-$pkgver
   python setup.py build

Added: issue26.patch
===================================================================
--- issue26.patch	                        (rev 0)
+++ issue26.patch	2017-05-18 05:21:27 UTC (rev 228431)
@@ -0,0 +1,13 @@
+diff --git a/augeas/__init__.py b/augeas/__init__.py
+index ab9a2b1..ccfcec0 100644
+--- a/augeas/__init__.py
++++ b/augeas/__init__.py
+@@ -57,7 +57,7 @@ def enc(st):
+     if st:
+         return st.encode(AUGENC)
+     else:
+-        return ''
++        return b''
+ 
+ 
+ def dec(st):
\ No newline at end of file



More information about the arch-commits mailing list