summaryrefslogtreecommitdiff
path: root/sys-process/glances/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-17 20:32:17 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-17 20:32:17 +0100
commit83b5cde41ddb8fd20de4536dd68eb08da42d013e (patch)
tree6a993cfe0eb5a8024c508e9f6a6de02538f7c52e /sys-process/glances/files
parent9c26151d84a72781f240cc7ca3e2f0ab4ba60f74 (diff)
gentoo auto-resync : 17:07:2022 - 20:32:17
Diffstat (limited to 'sys-process/glances/files')
-rw-r--r--sys-process/glances/files/glances-3.2.5-disable-update-check.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-process/glances/files/glances-3.2.5-disable-update-check.patch b/sys-process/glances/files/glances-3.2.5-disable-update-check.patch
new file mode 100644
index 000000000000..da12729eefd4
--- /dev/null
+++ b/sys-process/glances/files/glances-3.2.5-disable-update-check.patch
@@ -0,0 +1,31 @@
+Description: Disable nagging suggestion to upgrade using pip
+Author: Sebastien Badia <sbadia@debian.org>
+Bug-Debian: https://bugs.debian.org/877127
+Forwarded: not-needed
+Last-Update: 2022-04-16
+
+--- a/glances/standalone.py
++++ b/glances/standalone.py
+@@ -107,9 +107,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
+@@ -188,12 +185,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")