summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-01 23:58:17 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-01 23:58:17 +0100
commitfc39cebbc4d20238a4b751724ea32105bdd61286 (patch)
tree29047c9d999e8d0fa35fc4551467a0533e791738 /cscript
parentb084aef4443929e14acf690f7c9e2378b80fb43f (diff)
Try to fix Centos 5 32-bit build.
Diffstat (limited to 'cscript')
-rw-r--r--cscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/cscript b/cscript
index 73e9eebea..1381ddcee 100644
--- 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)):