summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/glances/files')
-rw-r--r--sys-process/glances/files/glances-3.2.5-disable-update-check.patch (renamed from sys-process/glances/files/disable-update-check.patch)13
-rw-r--r--sys-process/glances/files/glances-3.4.0.3-disable-update-check.patch40
2 files changed, 48 insertions, 5 deletions
diff --git a/sys-process/glances/files/disable-update-check.patch b/sys-process/glances/files/glances-3.2.5-disable-update-check.patch
index 3706959c2fbb..da12729eefd4 100644
--- a/sys-process/glances/files/disable-update-check.patch
+++ b/sys-process/glances/files/glances-3.2.5-disable-update-check.patch
@@ -2,11 +2,11 @@ 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: 2019-02-07
+Last-Update: 2022-04-16
--- a/glances/standalone.py
+++ b/glances/standalone.py
-@@ -92,9 +92,6 @@
+@@ -107,9 +107,6 @@
# Init screen
self.screen = GlancesCursesStandalone(config=config, args=args)
@@ -16,13 +16,16 @@ Last-Update: 2019-02-07
@property
def quiet(self):
return self._quiet
-@@ -156,9 +153,3 @@
+@@ -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 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/files/glances-3.4.0.3-disable-update-check.patch b/sys-process/glances/files/glances-3.4.0.3-disable-update-check.patch
new file mode 100644
index 000000000000..79391aca3e4f
--- /dev/null
+++ b/sys-process/glances/files/glances-3.4.0.3-disable-update-check.patch
@@ -0,0 +1,40 @@
+commit cf50275006e4bdd4a08c2235e688050a4a25a7a4
+Author: John Helmert III <ajak@gentoo.org>
+Date: Sat Jun 10 10:38:03 2023 -0700
+
+ disable out-to-date runtime check
+
+ Signed-off-by: John Helmert III <ajak@gentoo.org>
+
+diff --git a/glances/standalone.py b/glances/standalone.py
+index 8ab60e8c..b1f8c454 100644
+--- a/glances/standalone.py
++++ b/glances/standalone.py
+@@ -105,9 +105,6 @@ class GlancesStandalone(object):
+ # 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
+@@ -186,17 +183,3 @@ class GlancesStandalone(object):
+
+ # 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")
+- print("Disable this warning temporarily using: glances --disable-check-update")
+- print(
+- "To disable it permanently, refer config reference at "
+- "https://glances.readthedocs.io/en/latest/config.html#syntax"
+- )