lib/mixlib/install/backend/base.rb in mixlib-install-2.0.3 vs lib/mixlib/install/backend/base.rb in mixlib-install-2.0.4

- old
+ new

@@ -173,9 +173,28 @@ platform_version = "5.#{platform_version}" end [platform, platform_version] end + + # + # Normalizes architecture information that we receive from omnibus.architecture + # + # @param [String] architecture + # + # @return String [architecture] + def normalize_architecture(architecture) + case architecture + when "amd64" + "x86_64" + when "x86", "i86pc", "i686" + "i386" + when "sun4u", "sun4v" + "sparc" + else + architecture + end + end end end end end