public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/glances] epel10: Add patch0 to disable outdated warning
@ 2026-08-30 14:23 Carl George
  0 siblings, 0 replies; only message in thread
From: Carl George @ 2026-08-30 14:23 UTC (permalink / raw)
  To: git-commits

            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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-30 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-30 14:23 [rpms/glances] epel10: Add patch0 to disable outdated warning Carl George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox