From: Fabian Groffen Date: Thu, 21 Feb 2019 18:35:44 +0000 (+0100) Subject: app-admin/diamond: fix psutil interaction X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8ffd36140a186c7e55768b215ddf58f1d04f8765;p=gentoo.git app-admin/diamond: fix psutil interaction Signed-off-by: Fabian Groffen Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- 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