Fixed some indentation errors

This commit is contained in:
Mario Melara 2016-03-02 10:27:12 -08:00
parent 4d74784209
commit f27f2f8e49

View file

@ -225,7 +225,7 @@ def _concretize_operating_system(self, arch, platform):
spec.add_operating_system_from_string(spec.architecture.platform_os) spec.add_operating_system_from_string(spec.architecture.platform_os)
return True #changed return True #changed
if spec.root.architecture.platform_os: if spec.root.architecture.platform_os:
if isinstance(spec.root.architecture.platform_os,spack.architecture.OperatingSystem): if isinstance(spec.root.architecture.platform_os,spack.architecture.OperatingSystem):
spec.architecture.platform_os = spec.root.architecture.platform_os spec.architecture.platform_os = spec.root.architecture.platform_os
else: else:
spec.add_operating_system_from_string(spec.root.architecture.platform_os) spec.add_operating_system_from_string(spec.root.architecture.platform_os)
@ -281,13 +281,13 @@ def concretize_architecture(self, spec):
""" """
platform = spack.architecture.sys_type() platform = spack.architecture.sys_type()
if spec.architecture is None: if spec.architecture is None:
# Create an empty tuple # Create an empty tuple
Arch = spack.architecture.Arch Arch = spack.architecture.Arch
# Set the architecture to all defaults # Set the architecture to all defaults
spec.architecture = Arch(platform=platform, spec.architecture = Arch(platform=platform, platform_os=None,
None, target=None)
None)
return True return True
#If there is a target and it is a tuple and has both filled return #If there is a target and it is a tuple and has both filled return
#False #False