From 0fc06cc24a2a4e672d1729fe45cf55d5653fc6b0 Mon Sep 17 00:00:00 2001 From: Edouard Bourguignon Date: Feb 22 2013 06:50:26 +0000 Subject: Patch to fix bug #914837 (noSuchProcess) --- diff --git a/glances-1.5.2-noSuchProcess.patch b/glances-1.5.2-noSuchProcess.patch new file mode 100644 index 0000000..caf6273 --- /dev/null +++ b/glances-1.5.2-noSuchProcess.patch @@ -0,0 +1,12 @@ +diff -Naur glances-1.5.2.ori/glances/glances.py glances-1.5.2/glances/glances.py +--- glances-1.5.2.ori/glances/glances.py 2012-12-28 18:50:56.000000000 +0100 ++++ glances-1.5.2/glances/glances.py 2013-02-22 06:41:35.073000000 +0100 +@@ -575,6 +575,8 @@ + except KeyError: + # Key did not exist, create it + self.processcount[str(proc.status)] = 1 ++ except NoSuchProcess: ++ continue + self.processcount['total'] += 1 + + def getcount(self): diff --git a/glances.spec b/glances.spec index 9d311be..d3b18dc 100644 --- a/glances.spec +++ b/glances.spec @@ -5,13 +5,14 @@ Name: glances Version: 1.5.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: CLI curses based monitoring tool Group: Applications/System License: GPLv3 URL: https://github.com/nicolargo/glances Source0: https://github.com/downloads/nicolargo/%{name}/%{name}-%{version}.tar.gz +Patch0: glances-1.5.2-noSuchProcess.patch BuildArch: noarch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %if 0%{?rhel} && 0%{?rhel} <= 5 @@ -31,6 +32,7 @@ It is developed in Python. %prep %setup -q +%patch0 -p1 %build @@ -57,6 +59,9 @@ rm -rf %{buildroot} %{_datadir}/man/man1/glances.1.gz %changelog +* Sat Feb 23 2013 Edouard Bourguignon - 1.5.2-3 +- Patch to fix bug #914837 (noSuchProcess) + * Wed Feb 13 2013 Fedora Release Engineering - 1.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild