File: 004_disable-pypi.patch

package info (click to toggle)
glances 3.3.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,924 kB
  • sloc: python: 12,849; makefile: 343; javascript: 330; sh: 169
file content (31 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download
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-10-23

--- a/glances/standalone.py
+++ b/glances/standalone.py
@@ -103,9 +103,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
@@ -184,12 +181,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")