From 7cf029829064298d05879a8a87a17ba9d2575db059a0cda0f547130898c7a913 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Mon, 5 Jan 2015 15:08:00 +0000
Subject: [PATCH] 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
---
...-powertop2tuned-fix-KeyError-on-id-attribute.patch | 11 +++++++++++
tuned.changes | 6 ++++++
tuned.spec | 3 +++
3 files changed, 20 insertions(+)
create mode 100644 tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch
diff --git a/tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch b/tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch
new file mode 100644
index 0000000..d7dd0cc
--- /dev/null
+++ b/tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch
@@ -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
diff --git a/tuned.changes b/tuned.changes
index dcc0eb1..1d0c7dc 100644
--- a/tuned.changes
+++ b/tuned.changes
@@ -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
diff --git a/tuned.spec b/tuned.spec
index 382d3a5..a9d81a0 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -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.