1 Star 0 Fork 29

Suyun/supermin

forked from src-openEuler/supermin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
9002-fix-cannot-detect-package-manager-on-UnionTech.patch 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
xu_ping 提交于 2024-10-25 09:44 +08:00 . Upgrade version to 5.3.5
From bab1f73ae2ba78ff78a544303dfac63581ac31b4 Mon Sep 17 00:00:00 2001
From: fu-shanqing <fushanqing@kylinos.com>
Date: Fri, 23 Sep 2022 12:13:19 +0800
Subject: [PATCH] fix-cannot-detect-package-manager-on-UnionTech
---
src/ph_rpm.ml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml
index 5061d32..79aae03 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"; "KylinSecOS" ] ||
+ (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler"; "anolis"; "KylinSecOS"; "uos" ] ||
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/anolis-release").st_kind = S_REG ||
- (stat "/etc/kylin-release").st_kind = S_REG
+ (stat "/etc/kylin-release").st_kind = S_REG ||
+ (stat "/etc/UnionTech-release").st_kind = S_REG
with Unix_error _ -> false)
let opensuse_detect () =
--
2.46.2
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Suyun114/supermin.git
git@gitee.com:Suyun114/supermin.git
Suyun114
supermin
supermin
master

搜索帮助