mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 21:57:02 +02:00
parent
b9609ad1bd
commit
f26860a486
2 changed files with 16 additions and 35 deletions
|
@ -1,32 +1,13 @@
|
|||
Description: Disable nagging suggestion to upgrade using pip
|
||||
Author: Sebastien Badia <sbadia@debian.org>
|
||||
Bug-Debian: https://bugs.debian.org/877127
|
||||
|
||||
--- a/glances/standalone.py
|
||||
+++ b/glances/standalone.py
|
||||
@@ -112,9 +112,6 @@
|
||||
# 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 @@
|
||||
|
||||
# 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"
|
||||
- )
|
||||
diff --git a/conf/glances.conf b/conf/glances.conf
|
||||
index 153ff3d..ef0a7ff 100644
|
||||
--- a/conf/glances.conf
|
||||
+++ b/conf/glances.conf
|
||||
@@ -8,7 +8,7 @@
|
||||
# It is also possible to overwrite it in each plugin sections
|
||||
refresh=2
|
||||
# Does Glances should check if a newer version is available on PyPI ?
|
||||
-check_update=true
|
||||
+check_update=false
|
||||
# History size (maximum number of values)
|
||||
# Default is 1200 values (~1h with the default refresh rate)
|
||||
history_size=1200
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'glances'
|
||||
pkgname=glances
|
||||
version=4.1.2.1
|
||||
revision=2
|
||||
version=4.2.1
|
||||
revision=1
|
||||
build_style=python3-pep517
|
||||
hostmakedepends="python3-setuptools python3-wheel"
|
||||
depends="python3-psutil python3-defusedxml python3-packaging python3-orjson
|
||||
|
@ -13,7 +13,7 @@ license="LGPL-3.0-or-later"
|
|||
homepage="https://nicolargo.github.io/glances/"
|
||||
changelog="https://raw.githubusercontent.com/nicolargo/glances/develop/NEWS.rst"
|
||||
distfiles="https://github.com/nicolargo/glances/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum=879e0cc53d0765d6b23f2572ef9e36c58d7ca468a66b0f344f1dedc0a430283a
|
||||
checksum=fedbda2a08e0c4f3c46636f94aaa80182a3ad8c4e77868b3e1b92b735eaba685
|
||||
|
||||
post_install() {
|
||||
vsconf conf/glances.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue