1 |
commit: 56f58577c71f59a7644bb36760e7b30d55578813 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 28 08:58:44 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 28 08:59:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56f58577 |
7 |
|
8 |
sys-process/glances: rebvump 3.1.3, fix tests, disable update check |
9 |
|
10 |
Disable nagging suggestion to upgrade using pip, patch imported from debian |
11 |
|
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
14 |
|
15 |
.../glances/files/disable-update-check.patch | 28 ++++++++++++++++++++++ |
16 |
...lances-3.1.3.ebuild => glances-3.1.3-r1.ebuild} | 7 ++++-- |
17 |
2 files changed, 33 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/sys-process/glances/files/disable-update-check.patch b/sys-process/glances/files/disable-update-check.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..3706959c2fb |
22 |
--- /dev/null |
23 |
+++ b/sys-process/glances/files/disable-update-check.patch |
24 |
@@ -0,0 +1,28 @@ |
25 |
+Description: Disable nagging suggestion to upgrade using pip |
26 |
+Author: Sebastien Badia <sbadia@××××××.org> |
27 |
+Bug-Debian: https://bugs.debian.org/877127 |
28 |
+Forwarded: not-needed |
29 |
+Last-Update: 2019-02-07 |
30 |
+ |
31 |
+--- a/glances/standalone.py |
32 |
++++ b/glances/standalone.py |
33 |
+@@ -92,9 +92,6 @@ |
34 |
+ # Init screen |
35 |
+ self.screen = GlancesCursesStandalone(config=config, args=args) |
36 |
+ |
37 |
+- # Check the latest Glances version |
38 |
+- self.outdated = Outdated(config=config, args=args) |
39 |
+- |
40 |
+ @property |
41 |
+ def quiet(self): |
42 |
+ return self._quiet |
43 |
+@@ -156,9 +153,3 @@ |
44 |
+ |
45 |
+ # Exit from export modules |
46 |
+ self.stats.end() |
47 |
+- |
48 |
+- # Check Glances version versus PyPI one |
49 |
+- if self.outdated.is_outdated(): |
50 |
+- print("You are using Glances version {}, however version {} is available.".format( |
51 |
+- self.outdated.installed_version(), self.outdated.latest_version())) |
52 |
+- print("You should consider upgrading using: pip install --upgrade glances") |
53 |
|
54 |
diff --git a/sys-process/glances/glances-3.1.3.ebuild b/sys-process/glances/glances-3.1.3-r1.ebuild |
55 |
similarity index 95% |
56 |
rename from sys-process/glances/glances-3.1.3.ebuild |
57 |
rename to sys-process/glances/glances-3.1.3-r1.ebuild |
58 |
index 123e7d05a15..f618736435a 100644 |
59 |
--- a/sys-process/glances/glances-3.1.3.ebuild |
60 |
+++ b/sys-process/glances/glances-3.1.3-r1.ebuild |
61 |
@@ -22,9 +22,12 @@ RDEPEND="dev-python/future[${PYTHON_USEDEP}] |
62 |
|
63 |
CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" |
64 |
|
65 |
-PATCHES=( "${FILESDIR}/${PV}-fix-test.patch" ) |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/disable-update-check.patch" |
68 |
+ "${FILESDIR}/${PV}-fix-test.patch" |
69 |
+) |
70 |
|
71 |
-distutils_enable_tests unittest |
72 |
+distutils_enable_tests setup.py |
73 |
distutils_enable_sphinx docs --no-autodoc |
74 |
|
75 |
pkg_setup() { |