[arch-commits] Commit in thefuck/repos/community-any (5 files)

Felix Yan fyan at archlinux.org
Wed Jul 1 07:15:06 UTC 2015


    Date: Wednesday, July 1, 2015 @ 09:15:06
  Author: fyan
Revision: 136189

archrelease: copy trunk to community-any

Added:
  thefuck/repos/community-any/PKGBUILD
    (from rev 136188, thefuck/trunk/PKGBUILD)
  thefuck/repos/community-any/psutil-3.patch
    (from rev 136188, thefuck/trunk/psutil-3.patch)
  thefuck/repos/community-any/thefuck.install
    (from rev 136188, thefuck/trunk/thefuck.install)
Deleted:
  thefuck/repos/community-any/PKGBUILD
  thefuck/repos/community-any/thefuck.install

-----------------+
 PKGBUILD        |   85 ++++++++++++++++++++++++++++--------------------------
 psutil-3.patch  |   33 ++++++++++++++++++++
 thefuck.install |    6 +--
 3 files changed, 81 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-07-01 07:14:47 UTC (rev 136188)
+++ PKGBUILD	2015-07-01 07:15:06 UTC (rev 136189)
@@ -1,40 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=thefuck
-pkgver=1.46
-pkgrel=1
-pkgdesc="Magnificent app which corrects your previous console command"
-arch=('any')
-url="https://github.com/nvbn/thefuck"
-license=('MIT')
-depends=('python-setuptools' 'python-psutil' 'python-six' 'python-colorama')
-makedepends=('git')
-checkdepends=('python-pytest-mock' 'python-mock')
-install=thefuck.install
-source=("git+https://github.com/nvbn/thefuck.git#tag=$pkgver")
-sha256sums=('SKIP')
-
-prepare() {
-  # pathlib is standard library since Python 3.4
-  sed -i "s|install_requires=\['pathlib',|install_requires=[|" thefuck/setup.py
-}
-
-build() {
-  cd thefuck
-  python setup.py build
-}
-
-check() {
-  cd thefuck
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
-}
-
-package() {
-  cd thefuck
-  python3 setup.py install -O1 --prefix=/usr --root="$pkgdir/"
-
-  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: thefuck/repos/community-any/PKGBUILD (from rev 136188, thefuck/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-07-01 07:15:06 UTC (rev 136189)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=thefuck
+pkgver=1.46
+pkgrel=2
+pkgdesc="Magnificent app which corrects your previous console command"
+arch=('any')
+url="https://github.com/nvbn/thefuck"
+license=('MIT')
+depends=('python-setuptools' 'python-psutil' 'python-six' 'python-colorama')
+makedepends=('git')
+checkdepends=('python-pytest-mock' 'python-mock')
+install=thefuck.install
+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() {
+  cd thefuck
+  python setup.py build
+}
+
+check() {
+  cd thefuck
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
+}
+
+package() {
+  cd thefuck
+  python3 setup.py install -O1 --prefix=/usr --root="$pkgdir/"
+
+  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: thefuck/repos/community-any/psutil-3.patch (from rev 136188, thefuck/trunk/psutil-3.patch)
===================================================================
--- psutil-3.patch	                        (rev 0)
+++ psutil-3.patch	2015-07-01 07:15:06 UTC (rev 136189)
@@ -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

Deleted: thefuck.install
===================================================================
--- thefuck.install	2015-07-01 07:14:47 UTC (rev 136188)
+++ thefuck.install	2015-07-01 07:15:06 UTC (rev 136189)
@@ -1,3 +0,0 @@
-post_install() {
-  printf '%s\n' '=> Add: alias fuck=''$(thefuck $(fc -ln -1))'' to your .bashrc or .zshrc.'
-}

Copied: thefuck/repos/community-any/thefuck.install (from rev 136188, thefuck/trunk/thefuck.install)
===================================================================
--- thefuck.install	                        (rev 0)
+++ thefuck.install	2015-07-01 07:15:06 UTC (rev 136189)
@@ -0,0 +1,3 @@
+post_install() {
+  printf '%s\n' '=> Add: alias fuck=''$(thefuck $(fc -ln -1))'' to your .bashrc or .zshrc.'
+}



More information about the arch-commits mailing list