public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Carl George <carl@george.computer>
To: git-commits@fedoraproject.org
Subject: [rpms/glances] epel10: Add patch0 to disable outdated warning
Date: Sun, 30 Aug 2026 14:23:19 GMT [thread overview]
Message-ID: <178809979977.1.3098862991363416907.rpms-glances-c033a5de63b6@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/glances
Branch : epel10
Commit : c033a5de63b6283c9476f4134abfd94dac963b98
Author : Carl George <carl@george.computer>
Date : 2020-05-26T22:16:06-05:00
Stats : +41/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/glances/c/c033a5de63b6283c9476f4134abfd94dac963b98?branch=epel10
Log:
Add patch0 to disable outdated warning
https://bugzilla.redhat.com/show_bug.cgi?id=1773662
---
diff --git a/disable-outdated-warning.patch b/disable-outdated-warning.patch
new file mode 100644
index 0000000..c3cfda3
--- /dev/null
+++ b/disable-outdated-warning.patch
@@ -0,0 +1,31 @@
+diff -Nurp glances-3.1.0.orig/glances/standalone.py glances-3.1.0/glances/standalone.py
+--- glances-3.1.0.orig/glances/standalone.py 2019-12-22 14:16:39.845870773 -0600
++++ glances-3.1.0/glances/standalone.py 2019-12-22 14:17:29.059115003 -0600
+@@ -29,7 +29,6 @@ from glances.stats import GlancesStats
+ from glances.outputs.glances_curses import GlancesCursesStandalone
+ from glances.outputs.glances_stdout import GlancesStdout
+ from glances.outputs.glances_stdout_csv import GlancesStdoutCsv
+-from glances.outdated import Outdated
+ from glances.timer import Counter
+
+
+@@ -92,9 +91,6 @@ class GlancesStandalone(object):
+ # Init screen
+ self.screen = GlancesCursesStandalone(config=config, args=args)
+
+- # Check the latest Glances version
+- self.outdated = Outdated(config=config, args=args)
+-
+ @property
+ def quiet(self):
+ return self._quiet
+@@ -156,9 +152,3 @@ class GlancesStandalone(object):
+
+ # 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/glances.spec b/glances.spec
index 2e1b33e..09f0f1b 100644
--- a/glances.spec
+++ b/glances.spec
@@ -3,12 +3,15 @@
%{?python_enable_dependency_generator}
Name: glances
Version: 3.1.4.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: CLI curses based monitoring tool
License: GPLv3
URL: https://github.com/nicolargo/glances
Source0: https://github.com/nicolargo/glances/archive/v%{version}.tar.gz
+# disable warning that suggests updating via pip
+# https://bugzilla.redhat.com/show_bug.cgi?id=1773662
+Patch0: disable-outdated-warning.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@@ -25,7 +28,9 @@ Glances uses the PsUtil library to get information from your system.
It is developed in Python.
%prep
-%autosetup -n %{name}-%{version}
+%autosetup -n %{name}-%{version} -p 1
+# related to patch0
+rm glances/outdated.py
%build
%py3_build
@@ -47,6 +52,9 @@ It is developed in Python.
%changelog
+* Wed May 27 2020 Carl George <carl@george.computer> - 3.1.4.1-3
+- Add patch0 to disable outdated warning rhbz#1773662
+
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.1.4.1-2
- Rebuilt for Python 3.9
reply other threads:[~2026-08-30 14:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=178809979977.1.3098862991363416907.rpms-glances-c033a5de63b6@fedoraproject.org \
--to=carl@george.computer \
--cc=git-commits@fedoraproject.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