From f26860a4865ae7a10d88e16b48ec460e872cfe36 Mon Sep 17 00:00:00 2001 From: Saksham Date: Wed, 11 Dec 2024 08:17:50 +0530 Subject: [PATCH] glances: update to 4.2.1 Closes: #53458 [via git-merge-pr] --- srcpkgs/glances/patches/no-check-update.patch | 45 ++++++------------- srcpkgs/glances/template | 6 +-- 2 files changed, 16 insertions(+), 35 deletions(-) diff --git a/srcpkgs/glances/patches/no-check-update.patch b/srcpkgs/glances/patches/no-check-update.patch index b44e7d11866..e04128bcb37 100644 --- a/srcpkgs/glances/patches/no-check-update.patch +++ b/srcpkgs/glances/patches/no-check-update.patch @@ -1,32 +1,13 @@ -Description: Disable nagging suggestion to upgrade using pip -Author: Sebastien Badia -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 diff --git a/srcpkgs/glances/template b/srcpkgs/glances/template index f3612aba697..4245707936d 100644 --- a/srcpkgs/glances/template +++ b/srcpkgs/glances/template @@ -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