Blame SOURCES/0004-powerpc-allow-PowerPC-plugin-to-run-on-ppc64le.patch

0cd6dc
From 988fee7e6d0c2c91cf1f2c9363d4e3cea7244163 Mon Sep 17 00:00:00 2001
0cd6dc
From: "Bryn M. Reeves" <bmr@redhat.com>
0cd6dc
Date: Thu, 2 Oct 2014 17:25:17 +0100
0cd6dc
Subject: [PATCH 04/93] [powerpc] allow PowerPC plugin to run on ppc64le
0cd6dc
0cd6dc
The plugin currently tests whether policy().get_arch() is equal
0cd6dc
to "ppc64". On little endian PowerPC machines this method returns
0cd6dc
"ppc64le". Change the check_enabled() method to test whether the
0cd6dc
returned string contains "ppc64".
0cd6dc
0cd6dc
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
0cd6dc
---
0cd6dc
 sos/plugins/powerpc.py | 2 +-
0cd6dc
 1 file changed, 1 insertion(+), 1 deletion(-)
0cd6dc
0cd6dc
diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py
0cd6dc
index 896d1d4..39b52f6 100644
0cd6dc
--- a/sos/plugins/powerpc.py
0cd6dc
+++ b/sos/plugins/powerpc.py
0cd6dc
@@ -27,7 +27,7 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
0cd6dc
     profiles = ('system', 'hardware')
0cd6dc
 
0cd6dc
     def check_enabled(self):
0cd6dc
-        return (self.policy().get_arch() == "ppc64")
0cd6dc
+        return "ppc64" in self.policy().get_arch()
0cd6dc
 
0cd6dc
     def setup(self):
0cd6dc
         try:
0cd6dc
-- 
0cd6dc
1.9.3
0cd6dc