Skip to content

Commit

Permalink
add kali as rolling OS
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-tech committed Oct 22, 2019
1 parent ac881b7 commit e7f88bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -176,7 +176,7 @@ def truncate_platform_version(platform_version, platform)
when "aix", "alpine", "mac_os_x", "openbsd", "slackware", "solaris2", "opensuse", "opensuseleap", "ubuntu", "amazon"
# Only want MAJOR.MINOR (e.g. Mac OS X 10.9, Ubuntu 12.04)
platform_version.split(".")[0..1].join(".")
when "arch", "gentoo"
when "arch", "gentoo", "kali"
# Arch Linux / Gentoo do not have a platform_version ohai attribute, they are rolling release (lsb_release -r)
"rolling"
when "windows"
Expand Down
1 change: 1 addition & 0 deletions spec/unit/metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ module Omnibus
it_behaves_like "a version manipulator", "fedora", "11.5", "11"
it_behaves_like "a version manipulator", "freebsd", "10.0", "10"
it_behaves_like "a version manipulator", "gentoo", "4.9.95-gentoo", "rolling"
it_behaves_like "a version manipulator", "kali", "rolling", "rolling"
it_behaves_like "a version manipulator", "mac_os_x", "10.9.1", "10.9"
it_behaves_like "a version manipulator", "omnios", "r151010", "r151010"
it_behaves_like "a version manipulator", "openbsd", "5.4.4", "5.4"
Expand Down

0 comments on commit e7f88bc

Please sign in to comment.