[arch-commits] Commit in thefuck/trunk (PKGBUILD psutil-3.patch)
Felix Yan
fyan at archlinux.org
Wed Jul 1 07:14:47 UTC 2015
Date: Wednesday, July 1, 2015 @ 09:14:47
Author: fyan
Revision: 136188
upgpkg: thefuck 1.46-2
add a patch to fix https://github.com/nvbn/thefuck/issues/255
Added:
thefuck/trunk/psutil-3.patch
Modified:
thefuck/trunk/PKGBUILD
----------------+
PKGBUILD | 11 ++++++++---
psutil-3.patch | 33 +++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-07-01 07:12:03 UTC (rev 136187)
+++ PKGBUILD 2015-07-01 07:14:47 UTC (rev 136188)
@@ -3,7 +3,7 @@
pkgname=thefuck
pkgver=1.46
-pkgrel=1
+pkgrel=2
pkgdesc="Magnificent app which corrects your previous console command"
arch=('any')
url="https://github.com/nvbn/thefuck"
@@ -12,12 +12,17 @@
makedepends=('git')
checkdepends=('python-pytest-mock' 'python-mock')
install=thefuck.install
-source=("git+https://github.com/nvbn/thefuck.git#tag=$pkgver")
-sha256sums=('SKIP')
+source=("git+https://github.com/nvbn/thefuck.git#tag=$pkgver"
+ psutil-3.patch)
+sha256sums=('SKIP'
+ 'cc6d7c5569f46171b89686d4b6dc885a20d03386681add15e40bf9f4d00c4933')
prepare() {
# pathlib is standard library since Python 3.4
sed -i "s|install_requires=\['pathlib',|install_requires=[|" thefuck/setup.py
+
+ cd thefuck
+ patch -p1 -i ../psutil-3.patch
}
build() {
Added: psutil-3.patch
===================================================================
--- psutil-3.patch (rev 0)
+++ psutil-3.patch 2015-07-01 07:14:47 UTC (rev 136188)
@@ -0,0 +1,33 @@
+From 6a88cc47b61656dc81fe527c2b9be91b125cc11e Mon Sep 17 00:00:00 2001
+From: Pablo Santiago Blum de Aguiar <scorphus at gmail.com>
+Date: Mon, 15 Jun 2015 09:20:07 -0300
+Subject: [PATCH] =?UTF-8?q?fix(main.wait=5Foutput):=20use=20Process?=
+ =?UTF-8?q?=E2=80=99=20children()=20instead=20of=20get=5Fchildren()?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Since psutil 2.0.0 `get_children()` has become deprecated and the use of
+`children()` instead of it has been encouraged. In version 3.0.0, just
+released, `get_children()` has been dropped. Check:
+
+https://github.com/giampaolo/psutil/blob/master/HISTORY.rst
+
+Fix #255
+---
+ thefuck/main.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/thefuck/main.py b/thefuck/main.py
+index 5772d4e..eebb668 100644
+--- a/thefuck/main.py
++++ b/thefuck/main.py
+@@ -62,7 +62,7 @@ def wait_output(settings, popen):
+ proc.wait(settings.wait_command)
+ return True
+ except TimeoutExpired:
+- for child in proc.get_children(recursive=True):
++ for child in proc.children(recursive=True):
+ child.kill()
+ proc.kill()
+ return False
More information about the arch-commits
mailing list