and fix supermin: failure: ext2fs_namei: parent directory not found Signed-off-by: cherry530 <xuping33@huawei.com> (cherry picked from commit 5c2b2ac6c9b8f1d5772feda8f44f8167afe63f21)
21 lines
916 B
Diff
21 lines
916 B
Diff
diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml
|
|
index 61537ce..8260396 100644
|
|
--- a/src/ph_rpm.ml
|
|
+++ b/src/ph_rpm.ml
|
|
@@ -31,11 +31,13 @@ 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" ] ||
|
|
+ (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler"; "hce"; "euleros" ] ||
|
|
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/openEuler-release").st_kind = S_REG ||
|
|
+ (stat "/etc/euleros-release").st_kind = S_REG ||
|
|
+ (stat "/etc/hce-release").st_kind = S_REG
|
|
with Unix_error _ -> false)
|
|
|
|
let opensuse_detect () =
|