From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] glances: update to 3.3.1.1.
Date: Thu, 26 Jan 2023 19:54:24 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41888@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
There is a new pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages glances
https://github.com/void-linux/void-packages/pull/41888
glances: update to 3.3.1.1.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture: **x86_64**
A patch file from https://github.com/void-linux/void-packages/pull/41888.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-glances-41888.patch --]
[-- Type: text/x-diff, Size: 3564 bytes --]
From fe186d6112b30aa6e1c21f76d536f9e803ed1a5b Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Thu, 26 Jan 2023 00:44:50 +0530
Subject: [PATCH] glances: update to 3.3.1.1.
Adopt.
---
srcpkgs/glances/patches/no-check-update.patch | 52 +++++++++++--------
srcpkgs/glances/template | 8 +--
2 files changed, 33 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/glances/patches/no-check-update.patch b/srcpkgs/glances/patches/no-check-update.patch
index 7b334f1551ff..1487ab0b3bdc 100644
--- a/srcpkgs/glances/patches/no-check-update.patch
+++ b/srcpkgs/glances/patches/no-check-update.patch
@@ -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")
+
diff --git a/srcpkgs/glances/template b/srcpkgs/glances/template
index d9ad47ccd85e..ace5c3b674ad 100644
--- a/srcpkgs/glances/template
+++ b/srcpkgs/glances/template
@@ -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
next reply other threads:[~2023-01-26 18:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 18:54 icp1994 [this message]
2023-01-29 22:29 ` [PR PATCH] [Merged]: " classabbyamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41888@inbox.vuxu.org \
--to=icp1994@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).