diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-26 00:07:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-26 00:07:28 +0100 |
commit | 994fe442814c4d169bb0f1ee9745604928006b39 (patch) | |
tree | 630f10f7414f44018095dd9d3cf9df55852a9d41 /sys-process/glances/files/glances-4.0.6-disable-update-check.patch | |
parent | f8999218b5a6eafa151e7367030cbfdb69e045ed (diff) |
gentoo auto-resync : 26:05:2024 - 00:07:27
Diffstat (limited to 'sys-process/glances/files/glances-4.0.6-disable-update-check.patch')
-rw-r--r-- | sys-process/glances/files/glances-4.0.6-disable-update-check.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-process/glances/files/glances-4.0.6-disable-update-check.patch b/sys-process/glances/files/glances-4.0.6-disable-update-check.patch new file mode 100644 index 000000000000..aa8fbfc569bd --- /dev/null +++ b/sys-process/glances/files/glances-4.0.6-disable-update-check.patch @@ -0,0 +1,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 + |