[PATCH 1/1] Check to see if the arch string starts with ppc64. (#516144)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* yuminstall.py (selectKernel): use python's "".startswith function to
check for ppc64 arch.
---
 yuminstall.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index ca973f0..1574bb5 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1246,7 +1246,8 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
 
         foundkernel = False
 
-        if (isys.smpAvailable() or isys.htavailable()) and rpmUtils.arch.canonArch != "ppc64":
+        if (isys.smpAvailable() or isys.htavailable()) \
+                and not rpmUtils.arch.canonArch.startswith('ppc64'):
             if selectKernel("kernel-smp"):
                 foundkernel = True
 
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux