Try to fix Centos 5 32-bit build.
authorCarl Hetherington <cth@carlh.net>
Fri, 1 Jul 2016 22:58:17 +0000 (23:58 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 1 Jul 2016 22:58:17 +0000 (23:58 +0100)
cscript

diff --git a/cscript b/cscript
index 73e9eebeaa74035db6a261eaddd7dde8db5c3cb1..1381ddcee29fde97dd2500d3003ac791f8bf64f2 100644 (file)
--- a/cscript
+++ b/cscript
@@ -337,7 +337,10 @@ def package_rpm(target, cpu, version):
     if cpu == "amd64":
         cpu = "x86_64"
     else:
-        cpu = "i686"
+        if target.distro == 'centos' and target.version == '5':
+            cpu = "i386"
+        else:
+            cpu = "i686"
 
     print('Looking in %s/RPMS/%s/*.rpm' % (topdir, cpu))
     for p in glob.glob('%s/RPMS/%s/*.rpm' % (topdir, cpu)):