1 Star 0 Fork 28

caodongxia/supermin

forked from src-openEuler/supermin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
9000-fix-cannot-detect-package-manager-on-openeuler.patch 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
gnaygnil 提交于 2020-02-14 15:52 . Package init
From 21d7bb90cbcb1ab71c3d7e660948b92bbf85e5f6 Mon Sep 17 00:00:00 2001
From: zhanghaibo <ted.zhang@huawei.com>
Date: Wed, 11 Dec 2019 03:02:27 +0000
Subject: [PATCH] supermin:fix cannot detect package manager on openeuler
---
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 b0a5eb2..61537ce 100644
--- a/src/ph_rpm.ml
+++ b/src/ph_rpm.ml
@@ -31,10 +31,11 @@ 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" ] ||
+ (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler" ] ||
try
(stat "/etc/redhat-release").st_kind = S_REG ||
- (stat "/etc/fedora-release").st_kind = S_REG
+ (stat "/etc/fedora-release").st_kind = S_REG ||
+ (stat "/etc/openEuler-release").st_kind = S_REG
with Unix_error _ -> false)
let opensuse_detect () =
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/caodongxia/supermin.git
git@gitee.com:caodongxia/supermin.git
caodongxia
supermin
supermin
master

搜索帮助