1 Star 0 Fork 29

linux-robustness/supermin

forked from src-openEuler/supermin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-fix-cannot-detect-package-manager-on-NestOS.patch 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
From 79c8d4e698d4a05965eaec361e9a09eec12eee42 Mon Sep 17 00:00:00 2001
From: jianli-97 <lijian2@kylinos.cn>
Date: Mon, 16 Oct 2023 14:58:57 +0800
Subject: [PATCH] fix cannot detect package manager on NestOS
---
src/ph_rpm.ml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml
index f2d9d3e..94ec845 100644
--- a/src/ph_rpm.ml
+++ b/src/ph_rpm.ml
@@ -32,13 +32,14 @@ let stringset_of_list pkgs =
let fedora_detect () =
Config.rpm <> "no" && Config.rpm2cpio <> "no" && rpm_is_available () &&
(Config.yumdownloader <> "no" || Config.dnf <> "no") &&
- (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler"; "anolis"; "uos" ] ||
+ (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler"; "anolis"; "uos"; "nestos" ] ||
try
(stat "/etc/redhat-release").st_kind = S_REG ||
(stat "/etc/fedora-release").st_kind = S_REG ||
(stat "/etc/openEuler-release").st_kind = S_REG ||
(stat "/etc/UnionTech-release").st_kind = S_REG ||
- (stat "/etc/anolis-release").st_kind = S_REG
+ (stat "/etc/anolis-release").st_kind = S_REG ||
+ (stat "/etc/openEuler-release-nestos-for-virt").st_kind = S_REG
with Unix_error _ -> false)
let opensuse_detect () =
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linux-robustness/supermin.git
git@gitee.com:linux-robustness/supermin.git
linux-robustness
supermin
supermin
master

搜索帮助