lib/omnibus/package.rb in omnibus-3.2.1 vs lib/omnibus/package.rb in omnibus-3.2.2

- old
+ new

@@ -133,10 +133,10 @@ # the platform shortname. this might be an Ohai-returned platform or # platform family but it also might be a shortname like `el` # def truncate_platform_version(platform_version, platform) case platform - when 'centos', 'debian', 'fedora', 'freebsd', 'rhel', 'el' + when 'centos', 'debian', 'el', 'fedora', 'freebsd', 'rhel', 'sles' # Only want MAJOR (e.g. Debian 7) platform_version.split('.').first when 'aix', 'arch', 'gentoo', 'mac_os_x', 'openbsd', 'slackware', 'solaris2', 'suse', 'ubuntu' # Only want MAJOR.MINOR (e.g. Mac OS X 10.9, Ubuntu 12.04) platform_version.split('.')[0..1].join('.')