From e7f88bc7eb57ccac7f1c66a31b343dd320ad881b Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Tue, 22 Oct 2019 05:00:54 -0500 Subject: [PATCH] add `kali` as rolling OS --- lib/omnibus/metadata.rb | 2 +- spec/unit/metadata_spec.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/omnibus/metadata.rb b/lib/omnibus/metadata.rb index 562270668..eb11724ff 100644 --- a/lib/omnibus/metadata.rb +++ b/lib/omnibus/metadata.rb @@ -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" diff --git a/spec/unit/metadata_spec.rb b/spec/unit/metadata_spec.rb index f5d100a6c..b75c000bd 100644 --- a/spec/unit/metadata_spec.rb +++ b/spec/unit/metadata_spec.rb @@ -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"