[arch-commits] Commit in python-linux-procfs/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Jun 23 09:33:23 UTC 2020


    Date: Tuesday, June 23, 2020 @ 09:33:23
  Author: dvzrv
Revision: 650957

upgpkg: python-linux-procfs 0.6.2-1: Upgrading to 0.6.2.

Adding fix for broken import and notified upstream about it on mailing list.

Modified:
  python-linux-procfs/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-23 09:18:31 UTC (rev 650956)
+++ PKGBUILD	2020-06-23 09:33:23 UTC (rev 650957)
@@ -1,10 +1,10 @@
-# Maintainer: David Runge <dave at sleepmap.de>
+# Maintainer: David Runge <dvzrv at archlinux.org>
 # Contributor: Joakim Hernberg <jhernberg at alchemy.lu>
 # Contributor: Ninez <triplesquarednine at gmail.com>
 
 pkgname=python-linux-procfs
-pkgver=0.6.1
-pkgrel=3
+pkgver=0.6.2
+pkgrel=1
 pkgdesc="Linux /proc abstraction classes for python"
 arch=('any')
 url="https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/"
@@ -12,8 +12,14 @@
 depends=('python-six')
 makedepends=('python-setuptools')
 source=("https://git.kernel.org/pub/scm/libs/python/${pkgname}/${pkgname}.git/snapshot/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('d4dbfcbd76013c8f3008019156aa48d6d1ad082b51ee4f8b3d60f32ba9fb6f9d1f840819f725a6bcf525ce5b3742c3e8af32b2ad06bcf9af7329315685868b50')
+sha512sums=('8af4ce0fcee8e2a9df234f8a73b8c33716bc378d0ae4f4cd991bd453f420f64024b3c085f2c63b9e6447988e4175c6e4b252567bb5576c7232f77c20301072b6')
 
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # fix broken import (notified upstream about issue on mailing list)
+  sed -e 's/utilist/.utilist/g' -i procfs/procfs.py
+}
+
 build() {
   cd "${pkgname}-${pkgver}"
   python setup.py build
@@ -21,7 +27,7 @@
 
 check() {
   cd "${pkgname}-${pkgver}"
-  export PYTHONPATH="build:${PYTHONPATH}"
+  export PYTHONPATH="build/:${PYTHONPATH}"
   python bitmasklist_test.py
 }
 



More information about the arch-commits mailing list