lib/mixlib/install/util.rb in mixlib-install-3.1.0 vs lib/mixlib/install/util.rb in mixlib-install-3.2.0
- old
+ new
@@ -146,9 +146,28 @@
"2008"
else
version
end
end
+
+ #
+ # Normalizes architecture information
+ #
+ # @param [String] architecture
+ #
+ # @return String [architecture]
+ def normalize_architecture(architecture)
+ case architecture
+ when "amd64"
+ "x86_64"
+ when "i86pc", "i686"
+ "i386"
+ when "sun4u", "sun4v"
+ "sparc"
+ else
+ architecture
+ end
+ end
end
end
end
end