commit:     56f58577c71f59a7644bb36760e7b30d55578813
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 28 08:58:44 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sat Dec 28 08:59:02 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56f58577

sys-process/glances: rebvump 3.1.3, fix tests, disable update check

Disable nagging suggestion to upgrade using pip, patch imported from debian

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 .../glances/files/disable-update-check.patch       | 28 ++++++++++++++++++++++
 ...lances-3.1.3.ebuild => glances-3.1.3-r1.ebuild} |  7 ++++--
 2 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/sys-process/glances/files/disable-update-check.patch 
b/sys-process/glances/files/disable-update-check.patch
new file mode 100644
index 00000000000..3706959c2fb
--- /dev/null
+++ b/sys-process/glances/files/disable-update-check.patch
@@ -0,0 +1,28 @@
+Description: Disable nagging suggestion to upgrade using pip
+Author: Sebastien Badia <sba...@debian.org>
+Bug-Debian: https://bugs.debian.org/877127
+Forwarded: not-needed
+Last-Update: 2019-02-07
+
+--- a/glances/standalone.py
++++ b/glances/standalone.py
+@@ -92,9 +92,6 @@
+             # Init screen
+             self.screen = GlancesCursesStandalone(config=config, args=args)
+ 
+-        # Check the latest Glances version
+-        self.outdated = Outdated(config=config, args=args)
+-
+     @property
+     def quiet(self):
+         return self._quiet
+@@ -156,9 +153,3 @@
+ 
+         # Exit from export modules
+         self.stats.end()
+-
+-        # Check Glances version versus PyPI one
+-        if self.outdated.is_outdated():
+-            print("You are using Glances version {}, however version {} is 
available.".format(
+-                self.outdated.installed_version(), 
self.outdated.latest_version()))
+-            print("You should consider upgrading using: pip install --upgrade 
glances")

diff --git a/sys-process/glances/glances-3.1.3.ebuild 
b/sys-process/glances/glances-3.1.3-r1.ebuild
similarity index 95%
rename from sys-process/glances/glances-3.1.3.ebuild
rename to sys-process/glances/glances-3.1.3-r1.ebuild
index 123e7d05a15..f618736435a 100644
--- a/sys-process/glances/glances-3.1.3.ebuild
+++ b/sys-process/glances/glances-3.1.3-r1.ebuild
@@ -22,9 +22,12 @@ RDEPEND="dev-python/future[${PYTHON_USEDEP}]
 
 CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS"
 
-PATCHES=( "${FILESDIR}/${PV}-fix-test.patch" )
+PATCHES=(
+       "${FILESDIR}/disable-update-check.patch"
+       "${FILESDIR}/${PV}-fix-test.patch"
+)
 
-distutils_enable_tests unittest
+distutils_enable_tests setup.py
 distutils_enable_sphinx docs --no-autodoc
 
 pkg_setup() {

Reply via email to