Accepting request 279948 from home:posophe:branches:Base:System

Add tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch;
  fix bnc#888599

OBS-URL: https://build.opensuse.org/request/show/279948
OBS-URL: https://build.opensuse.org/package/show/Base:System/tuned?expand=0&rev=30
This commit is contained in:
Denisart Benjamin 2015-01-05 15:08:00 +00:00 committed by Git OBS Bridge
parent 74dff7822e
commit 7cf0298290
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/experiments/powertop2tuned.py.orig 2014-10-15 09:15:23.000000000 -0400
+++ b/experiments/powertop2tuned.py 2014-12-21 01:27:40.875480511 -0500
@@ -83,7 +83,7 @@
def handle_starttag(self, tag, attrs):
self.lastStartTag = tag
- if self.lastStartTag == "div" and dict(attrs)["id"] == "tuning":
+ if self.lastStartTag == "div" and dict(attrs).get("id") == "tuning":
self.inProperTable = True
if self.inProperTable and tag == "td":
self.tdCounter += 1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 5 15:07:22 UTC 2015 - p.drouand@gmail.com
- Add tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch;
fix bnc#888599
-------------------------------------------------------------------
Fri Oct 17 12:45:21 UTC 2014 - oholecek@suse.com

View File

@ -31,6 +31,8 @@ Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar
Patch0: fix-allow-receive_sender-default.patch
# PATCH-FIX-OPENSUSE tuned-2.4.0-use_cpupower_for_intel_perf_bias.patch --use cpupower instead of energy class
Patch2: tuned-2.4.0-use_cpupower_for_intel_perf_bias.patch
# PATCH-FIX-UPSTREAM tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch --use get function when define id attribute bnc#888599
Patch3: tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch
BuildRequires: python
BuildRequires: systemd
# Do not own standard directories
@ -117,6 +119,7 @@ instead of fewer large ones).
%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1
%build
#The tuned daemon is written in pure Python. Nothing requires to be built.