summaryrefslogtreecommitdiff
blob: da12729eefd4387d8cf059468febd706debdf914 (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
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")