1 |
commit: 8ffd36140a186c7e55768b215ddf58f1d04f8765 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 21 18:35:44 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 21 18:35:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ffd3614 |
7 |
|
8 |
app-admin/diamond: fix psutil interaction |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
app-admin/diamond/diamond-4.0.515.ebuild | 5 ++++- |
14 |
1 file changed, 4 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/app-admin/diamond/diamond-4.0.515.ebuild b/app-admin/diamond/diamond-4.0.515.ebuild |
17 |
index 6c874d48ed2..4477513e976 100644 |
18 |
--- a/app-admin/diamond/diamond-4.0.515.ebuild |
19 |
+++ b/app-admin/diamond/diamond-4.0.515.ebuild |
20 |
@@ -1,4 +1,4 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=5 |
26 |
@@ -43,6 +43,9 @@ src_prepare() { |
27 |
|
28 |
# fix the version (not set in GitHub archive) |
29 |
sed -i -e "s/__VERSIONTOKENHERE__/${PV}/" src/diamond/version.py.tmpl || die |
30 |
+ # fix psutil usage |
31 |
+ sed -i -e 's/psutil\.network_io_counters/psutil.net_io_counters/' \ |
32 |
+ src/collectors/network/network.py || die |
33 |
# fix symlink out of place |
34 |
rm README.md || die |
35 |
cp docs/index.md README.md || die |