mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +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
|
diff --git a/conf/glances.conf b/conf/glances.conf
|
||||||
Author: Sebastien Badia <sbadia@debian.org>
|
index 153ff3d..ef0a7ff 100644
|
||||||
Bug-Debian: https://bugs.debian.org/877127
|
--- a/conf/glances.conf
|
||||||
|
+++ b/conf/glances.conf
|
||||||
--- a/glances/standalone.py
|
@@ -8,7 +8,7 @@
|
||||||
+++ b/glances/standalone.py
|
# It is also possible to overwrite it in each plugin sections
|
||||||
@@ -112,9 +112,6 @@
|
refresh=2
|
||||||
# It is done in the screen.init function
|
# Does Glances should check if a newer version is available on PyPI ?
|
||||||
self._quiet = args.quiet
|
-check_update=true
|
||||||
|
+check_update=false
|
||||||
- # Check the latest Glances version
|
# History size (maximum number of values)
|
||||||
- self.outdated = Outdated(config=config, args=args)
|
# Default is 1200 values (~1h with the default refresh rate)
|
||||||
-
|
history_size=1200
|
||||||
@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"
|
|
||||||
- )
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'glances'
|
# Template file for 'glances'
|
||||||
pkgname=glances
|
pkgname=glances
|
||||||
version=4.1.2.1
|
version=4.2.1
|
||||||
revision=2
|
revision=1
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
hostmakedepends="python3-setuptools python3-wheel"
|
hostmakedepends="python3-setuptools python3-wheel"
|
||||||
depends="python3-psutil python3-defusedxml python3-packaging python3-orjson
|
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/"
|
homepage="https://nicolargo.github.io/glances/"
|
||||||
changelog="https://raw.githubusercontent.com/nicolargo/glances/develop/NEWS.rst"
|
changelog="https://raw.githubusercontent.com/nicolargo/glances/develop/NEWS.rst"
|
||||||
distfiles="https://github.com/nicolargo/glances/archive/refs/tags/v${version}.tar.gz"
|
distfiles="https://github.com/nicolargo/glances/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=879e0cc53d0765d6b23f2572ef9e36c58d7ca468a66b0f344f1dedc0a430283a
|
checksum=fedbda2a08e0c4f3c46636f94aaa80182a3ad8c4e77868b3e1b92b735eaba685
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsconf conf/glances.conf
|
vsconf conf/glances.conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue