|
|
a7e38b |
From 3db4dd1804b72575789a67f22a86d6085a141310 Mon Sep 17 00:00:00 2001
|
|
|
a7e38b |
From: Laszlo Ersek <lersek@redhat.com>
|
|
|
a7e38b |
Date: Wed, 13 Oct 2021 18:30:23 +0200
|
|
|
a7e38b |
Subject: [PATCH] daemon: inspection: Add support for Kylin (RHBZ#1995391).
|
|
|
a7e38b |
|
|
|
a7e38b |
Similar-to: cd08039d2427b584237265237c713d8cf46536a0
|
|
|
a7e38b |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
a7e38b |
Message-Id: <20211013163023.21786-1-lersek@redhat.com>
|
|
|
a7e38b |
Acked-by: Richard W.M. Jones <rjones@redhat.com>
|
|
|
a7e38b |
(cherry picked from commit 305b02e7e74afc3777b2291783cd7634fb76ecaf)
|
|
|
a7e38b |
---
|
|
|
a7e38b |
daemon/inspect_fs.ml | 2 ++
|
|
|
a7e38b |
daemon/inspect_fs_unix.ml | 1 +
|
|
|
a7e38b |
daemon/inspect_types.ml | 2 ++
|
|
|
a7e38b |
daemon/inspect_types.mli | 1 +
|
|
|
a7e38b |
generator/actions_inspection.ml | 4 ++++
|
|
|
a7e38b |
5 files changed, 10 insertions(+)
|
|
|
a7e38b |
|
|
|
a7e38b |
diff --git a/daemon/inspect_fs.ml b/daemon/inspect_fs.ml
|
|
|
a7e38b |
index 02b5a0470..77f0f6aea 100644
|
|
|
a7e38b |
--- a/daemon/inspect_fs.ml
|
|
|
a7e38b |
+++ b/daemon/inspect_fs.ml
|
|
|
a7e38b |
@@ -275,6 +275,7 @@ and check_package_format { distro } =
|
|
|
a7e38b |
Some PACKAGE_FORMAT_RPM
|
|
|
a7e38b |
| Some DISTRO_DEBIAN
|
|
|
a7e38b |
| Some DISTRO_KALI_LINUX
|
|
|
a7e38b |
+ | Some DISTRO_KYLIN (* supposedly another Ubuntu derivative *)
|
|
|
a7e38b |
| Some DISTRO_LINUX_MINT
|
|
|
a7e38b |
| Some DISTRO_UBUNTU ->
|
|
|
a7e38b |
Some PACKAGE_FORMAT_DEB
|
|
|
a7e38b |
@@ -345,6 +346,7 @@ and check_package_management { distro; version } =
|
|
|
a7e38b |
| Some DISTRO_ALTLINUX
|
|
|
a7e38b |
| Some DISTRO_DEBIAN
|
|
|
a7e38b |
| Some DISTRO_KALI_LINUX
|
|
|
a7e38b |
+ | Some DISTRO_KYLIN (* supposedly another Ubuntu derivative *)
|
|
|
a7e38b |
| Some DISTRO_LINUX_MINT
|
|
|
a7e38b |
| Some DISTRO_UBUNTU ->
|
|
|
a7e38b |
Some PACKAGE_MANAGEMENT_APT
|
|
|
a7e38b |
diff --git a/daemon/inspect_fs_unix.ml b/daemon/inspect_fs_unix.ml
|
|
|
a7e38b |
index 652bacc0f..7f6eb92e9 100644
|
|
|
a7e38b |
--- a/daemon/inspect_fs_unix.ml
|
|
|
a7e38b |
+++ b/daemon/inspect_fs_unix.ml
|
|
|
a7e38b |
@@ -146,6 +146,7 @@ and distro_of_os_release_id = function
|
|
|
a7e38b |
| "frugalware" -> Some DISTRO_FRUGALWARE
|
|
|
a7e38b |
| "gentoo" -> Some DISTRO_GENTOO
|
|
|
a7e38b |
| "kali" -> Some DISTRO_KALI_LINUX
|
|
|
a7e38b |
+ | "kylin" -> Some DISTRO_KYLIN
|
|
|
a7e38b |
| "mageia" -> Some DISTRO_MAGEIA
|
|
|
a7e38b |
| "neokylin" -> Some DISTRO_NEOKYLIN
|
|
|
a7e38b |
| "openmandriva" -> Some DISTRO_OPENMANDRIVA
|
|
|
a7e38b |
diff --git a/daemon/inspect_types.ml b/daemon/inspect_types.ml
|
|
|
a7e38b |
index 18e410ce0..e2bc7165c 100644
|
|
|
a7e38b |
--- a/daemon/inspect_types.ml
|
|
|
a7e38b |
+++ b/daemon/inspect_types.ml
|
|
|
a7e38b |
@@ -79,6 +79,7 @@ and distro =
|
|
|
a7e38b |
| DISTRO_FRUGALWARE
|
|
|
a7e38b |
| DISTRO_GENTOO
|
|
|
a7e38b |
| DISTRO_KALI_LINUX
|
|
|
a7e38b |
+ | DISTRO_KYLIN
|
|
|
a7e38b |
| DISTRO_LINUX_MINT
|
|
|
a7e38b |
| DISTRO_MAGEIA
|
|
|
a7e38b |
| DISTRO_MANDRIVA
|
|
|
a7e38b |
@@ -211,6 +212,7 @@ and string_of_distro = function
|
|
|
a7e38b |
| DISTRO_FRUGALWARE -> "frugalware"
|
|
|
a7e38b |
| DISTRO_GENTOO -> "gentoo"
|
|
|
a7e38b |
| DISTRO_KALI_LINUX -> "kalilinux"
|
|
|
a7e38b |
+ | DISTRO_KYLIN -> "kylin"
|
|
|
a7e38b |
| DISTRO_LINUX_MINT -> "linuxmint"
|
|
|
a7e38b |
| DISTRO_MAGEIA -> "mageia"
|
|
|
a7e38b |
| DISTRO_MANDRIVA -> "mandriva"
|
|
|
a7e38b |
diff --git a/daemon/inspect_types.mli b/daemon/inspect_types.mli
|
|
|
a7e38b |
index d12f7a61a..43c79818f 100644
|
|
|
a7e38b |
--- a/daemon/inspect_types.mli
|
|
|
a7e38b |
+++ b/daemon/inspect_types.mli
|
|
|
a7e38b |
@@ -86,6 +86,7 @@ and distro =
|
|
|
a7e38b |
| DISTRO_FRUGALWARE
|
|
|
a7e38b |
| DISTRO_GENTOO
|
|
|
a7e38b |
| DISTRO_KALI_LINUX
|
|
|
a7e38b |
+ | DISTRO_KYLIN
|
|
|
a7e38b |
| DISTRO_LINUX_MINT
|
|
|
a7e38b |
| DISTRO_MAGEIA
|
|
|
a7e38b |
| DISTRO_MANDRIVA
|
|
|
a7e38b |
diff --git a/generator/actions_inspection.ml b/generator/actions_inspection.ml
|
|
|
a7e38b |
index 690afd460..0c6d39b43 100644
|
|
|
a7e38b |
--- a/generator/actions_inspection.ml
|
|
|
a7e38b |
+++ b/generator/actions_inspection.ml
|
|
|
a7e38b |
@@ -214,6 +214,10 @@ Gentoo.
|
|
|
a7e38b |
|
|
|
a7e38b |
Kali Linux.
|
|
|
a7e38b |
|
|
|
a7e38b |
+=item \"kylin\"
|
|
|
a7e38b |
+
|
|
|
a7e38b |
+Kylin.
|
|
|
a7e38b |
+
|
|
|
a7e38b |
=item \"linuxmint\"
|
|
|
a7e38b |
|
|
|
a7e38b |
Linux Mint.
|
|
|
a7e38b |
--
|
|
|
a7e38b |
2.31.1
|
|
|
a7e38b |
|