summaryrefslogtreecommitdiff
path: root/buildstream/_platform/platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_platform/platform.py')
-rw-r--r--buildstream/_platform/platform.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_platform/platform.py b/buildstream/_platform/platform.py
index 4c637ffa5..dba60ddca 100644
--- a/buildstream/_platform/platform.py
+++ b/buildstream/_platform/platform.py
@@ -76,7 +76,7 @@ class Platform():
@staticmethod
def get_host_os():
- return platform.uname()[0]
+ return platform.uname().system
# canonicalize_arch():
#
@@ -125,7 +125,7 @@ class Platform():
@staticmethod
def get_host_arch():
# get the hardware identifier from uname
- uname_machine = platform.uname()[4]
+ uname_machine = platform.uname().machine
return Platform.canonicalize_arch(uname_machine)
##################################################################