From 8ffd36140a186c7e55768b215ddf58f1d04f8765 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 21 Feb 2019 19:35:44 +0100 Subject: [PATCH] app-admin/diamond: fix psutil interaction Signed-off-by: Fabian Groffen Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- app-admin/diamond/diamond-4.0.515.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app-admin/diamond/diamond-4.0.515.ebuild b/app-admin/diamond/diamond-4.0.515.ebuild index 6c874d48ed22..4477513e976e 100644 --- a/app-admin/diamond/diamond-4.0.515.ebuild +++ b/app-admin/diamond/diamond-4.0.515.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -43,6 +43,9 @@ src_prepare() { # fix the version (not set in GitHub archive) sed -i -e "s/__VERSIONTOKENHERE__/${PV}/" src/diamond/version.py.tmpl || die + # fix psutil usage + sed -i -e 's/psutil\.network_io_counters/psutil.net_io_counters/' \ + src/collectors/network/network.py || die # fix symlink out of place rm README.md || die cp docs/index.md README.md || die -- 2.26.2