[yum-commits] rpmUtils/arch.py

zpavlas at osuosl.org zpavlas at osuosl.org
Mon Jul 15 14:25:50 UTC 2013


 rpmUtils/arch.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cbdc106afe2ee1cb68878331b50414e230652d79
Author: Anton Blanchard <anton at samba.org>
Date:   Fri Jul 12 14:50:25 2013 +0200

    Fix parsing of power7+ platform string
    
    We need to strip any trailing '+' before converting to int.
    
    Signed-off-by: Anton Blanchard <anton at samba.org>

diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py
index 57cbdfc..6172b1a 100644
--- a/rpmUtils/arch.py
+++ b/rpmUtils/arch.py
@@ -305,7 +305,7 @@ def getCanonPPCArch(arch):
         return arch
 
     try:
-        if platform.startswith("power") and int(platform[5:]) >= 7:
+        if platform.startswith("power") and int(platform[5:].rstrip('+')) >= 7:
             return "ppc64p7"
     except:
         pass


More information about the Yum-commits mailing list