glances: update to 3.3.1.1.

Adopt.
This commit is contained in:
icp 2023-01-26 00:44:50 +05:30 committed by classabbyamp
parent ec7270bdf9
commit 23fc75da31
2 changed files with 33 additions and 27 deletions

View file

@ -1,24 +1,30 @@
--- a/glances/main.py Description: Disable nagging suggestion to upgrade using pip
+++ b/glances/main.py Author: Sebastien Badia <sbadia@debian.org>
@@ -97,6 +97,7 @@ Bug-Debian: https://bugs.debian.org/877127
"""Manage the command line arguments."""
# Read the command line arguments --- a/glances/standalone.py
self.args = self.parse_args() +++ b/glances/standalone.py
+ self.args.disable_check_update = False @@ -103,9 +103,6 @@
# Init screen
self.screen = GlancesCursesStandalone(config=config, args=args)
def init_args(self): - # Check the latest Glances version
"""Init all the command line arguments.""" - self.outdated = Outdated(config=config, args=args)
@@ -514,13 +515,6 @@ -
) @property
# Globals options def quiet(self):
parser.add_argument( return self._quiet
- '--disable-check-update', @@ -184,12 +181,3 @@
- action='store_true',
- default=False, # Exit from export modules
- dest='disable_check_update', self.stats.end()
- help='disable online Glances version ckeck', -
- ) - # Check Glances version versus PyPI one
- parser.add_argument( - if self.outdated.is_outdated():
'--strftime', - print(
dest='strftime_format', - "You are using Glances version {}, however version {} is available.".format(
default='', - self.outdated.installed_version(), self.outdated.latest_version()
- )
- )
- print("You should consider upgrading using: pip install --upgrade glances")

View file

@ -1,18 +1,18 @@
# Template file for 'glances' # Template file for 'glances'
pkgname=glances pkgname=glances
version=3.3.0.4 version=3.3.1.1
revision=1 revision=1
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools" hostmakedepends="python3-setuptools"
depends="python3-future python3-psutil python3-defusedxml python3-packaging" depends="python3-psutil python3-defusedxml python3-packaging python3-ultrajson"
checkdepends="$depends" checkdepends="$depends"
short_desc="Cross-platform curses-based monitoring tool" short_desc="Cross-platform curses-based monitoring tool"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="icp <pangolin@vivaldi.net>"
license="LGPL-3.0-or-later" 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=464905c9b4806b80782eb8e43552ccbfa346d6f905f8a2d28de48613ccba0e53 checksum=450c604ddfe05398ec88bd237648c7d851ad3c537b5f785eccafab4e9789c235
post_install() { post_install() {
vsconf conf/glances.conf vsconf conf/glances.conf