blob: aa8fbfc569bd7971651c47c995f2caf7361f359e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From: John Helmert III <ajak@gentoo.org>
Date: Sat, 25 May 2024 14:01:10 -0700
Subject: [PATCH] disable runtime out-of-date check
Signed-off-by: John Helmert III <ajak@gentoo.org>
--- a/glances/standalone.py
+++ b/glances/standalone.py
@@ -112,9 +112,6 @@ class GlancesStandalone:
# It is done in the screen.init function
self._quiet = args.quiet
- # Check the latest Glances version
- self.outdated = Outdated(config=config, args=args)
-
@property
def quiet(self):
return self._quiet
@@ -192,15 +189,3 @@ class GlancesStandalone:
# Exit from export modules
self.stats.end()
-
- # Check Glances version versus PyPI one
- if self.outdated.is_outdated():
- latest_version = self.outdated.latest_version()
- installed_version = self.outdated.installed_version()
- print(f"You are using Glances version {installed_version}, however version {latest_version} is available.")
- 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"
- )
--
2.45.1
|