commit: 8ffd36140a186c7e55768b215ddf58f1d04f8765
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 21 18:35:44 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Feb 21 18:35:44 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ffd3614
app-admin/diamond: fix psutil interaction
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
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 6c874d48ed2..4477513e976 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