Skip to content

Commit

Permalink
Merge pull request chef#744 from ahelal/feature/alpine
Browse files Browse the repository at this point in the history
Support Alpine Linux
  • Loading branch information
schisamo authored Jan 18, 2017
2 parents aadc7f2 + e06ea2a commit 26fdb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omnibus/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def truncate_platform_version(platform_version, platform)
when "centos", "debian", "el", "fedora", "freebsd", "omnios", "pidora", "raspbian", "rhel", "sles", "suse", "smartos", "nexus", "ios_xr"
# Only want MAJOR (e.g. Debian 7, OmniOS r151006, SmartOS 20120809T221258Z)
platform_version.split(".").first
when "aix", "gentoo", "mac_os_x", "openbsd", "slackware", "solaris2", "opensuse", "ubuntu"
when "aix", "alpine", "gentoo", "mac_os_x", "openbsd", "slackware", "solaris2", "opensuse", "ubuntu"
# Only want MAJOR.MINOR (e.g. Mac OS X 10.9, Ubuntu 12.04)
platform_version.split(".")[0..1].join(".")
when "arch"
Expand Down

0 comments on commit 26fdb1f

Please sign in to comment.