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
+++ b/glances/main.py
@@ -97,6 +97,7 @@
"""Manage the command line arguments."""
# Read the command line arguments
self.args = self.parse_args()
+ self.args.disable_check_update = False
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
@@ -103,9 +103,6 @@
# Init screen
self.screen = GlancesCursesStandalone(config=config, args=args)
def init_args(self):
"""Init all the command line arguments."""
@@ -514,13 +515,6 @@
)
# Globals options
parser.add_argument(
- '--disable-check-update',
- action='store_true',
- default=False,
- dest='disable_check_update',
- help='disable online Glances version ckeck',
- )
- parser.add_argument(
'--strftime',
dest='strftime_format',
default='',
- # Check the latest Glances version
- self.outdated = Outdated(config=config, args=args)
-
@property
def quiet(self):
return self._quiet
@@ -184,12 +181,3 @@
# Exit from export modules
self.stats.end()
-
- # Check Glances version versus PyPI one
- if self.outdated.is_outdated():
- print(
- "You are using Glances version {}, however version {} is available.".format(
- 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'
pkgname=glances
version=3.3.0.4
version=3.3.1.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-future python3-psutil python3-defusedxml python3-packaging"
depends="python3-psutil python3-defusedxml python3-packaging python3-ultrajson"
checkdepends="$depends"
short_desc="Cross-platform curses-based monitoring tool"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="icp <pangolin@vivaldi.net>"
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=464905c9b4806b80782eb8e43552ccbfa346d6f905f8a2d28de48613ccba0e53
checksum=450c604ddfe05398ec88bd237648c7d851ad3c537b5f785eccafab4e9789c235
post_install() {
vsconf conf/glances.conf