summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-02-21 19:35:44 +0100
committerFabian Groffen <grobian@gentoo.org>2019-02-21 19:35:44 +0100
commit8ffd36140a186c7e55768b215ddf58f1d04f8765 (patch)
tree839ad81671c7e9e310065b63470b731972023800
parentapp-text/refbase: Drop old (diff)
downloadgentoo-8ffd36140a186c7e55768b215ddf58f1d04f8765.tar.gz
gentoo-8ffd36140a186c7e55768b215ddf58f1d04f8765.tar.bz2
gentoo-8ffd36140a186c7e55768b215ddf58f1d04f8765.zip
app-admin/diamond: fix psutil interaction
Signed-off-by: Fabian Groffen <grobian@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--app-admin/diamond/diamond-4.0.515.ebuild5
1 files changed, 4 insertions, 1 deletions
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