forked from pool/tuned
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:
committed by
Git OBS Bridge
parent
74dff7822e
commit
7cf0298290
11
tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch
Normal file
11
tuned-powertop2tuned-fix-KeyError-on-id-attribute.patch
Normal 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
|
@@ -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
|
Fri Oct 17 12:45:21 UTC 2014 - oholecek@suse.com
|
||||||
|
|
||||||
|
@@ -31,6 +31,8 @@ Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar
|
|||||||
Patch0: fix-allow-receive_sender-default.patch
|
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
|
# 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
|
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: python
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
# Do not own standard directories
|
# Do not own standard directories
|
||||||
@@ -117,6 +119,7 @@ instead of fewer large ones).
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#The tuned daemon is written in pure Python. Nothing requires to be built.
|
#The tuned daemon is written in pure Python. Nothing requires to be built.
|
||||||
|
Reference in New Issue
Block a user