Fix OS X build.
authorCarl Hetherington <cth@carlh.net>
Sat, 8 Feb 2014 20:51:46 +0000 (20:51 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 8 Feb 2014 20:51:46 +0000 (20:51 +0000)
cscript

diff --git a/cscript b/cscript
index e2975ce50a489a23117ad1a2e24bc079471b3b9b..49b2720af1be13a6223259107889c60b3b50a074 100644 (file)
--- a/cscript
+++ b/cscript
@@ -207,14 +207,14 @@ def package_centos(target, cpu, version):
     return rpms
 
 def package(target, version):
-    if target.bits == 32:
-        cpu = 'i386'
-    else:
-        cpu = 'amd64'
-
     if target.platform == 'windows':
         return package_windows(target)
     elif target.platform == 'linux':
+        if target.bits == 32:
+           cpu = 'i386'
+        else:  
+            cpu        = 'amd64'
+
        if target.distro == 'debian' or target.distro == 'ubuntu':
             return package_debian(target, cpu)
         elif target.distro == 'centos':