summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
Diffstat (limited to 'cscript')
-rw-r--r--cscript10
1 files changed, 5 insertions, 5 deletions
diff --git a/cscript b/cscript
index e2975ce50..49b2720af 100644
--- 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':