9 Star 0 Fork 24

src-openEuler/python-blivet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fix-getting-missing-libblockdev-technologies-with-Py.patch 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
xh 提交于 2025-07-31 15:17 +08:00 . fix blivet-gui test fail
From e231d01e62be2914d659df15e5adc78f0aa3ec34 Mon Sep 17 00:00:00 2001
From: Vojtech Trefny <vtrefny@redhat.com>
Date: Mon, 9 Jun 2025 20:59:32 +0200
Subject: [PATCH] Fix getting missing libblockdev technologies with Python 3.14
Hotfix for rhbz#2371256. Technologies in libblockdev are defined
as enums and we are using 'value_name' to get the technology name/
description in blivet. For some unknown reason the 'value_name'
attribute from GLib.GEnumValue is not available with Python 3.14.
This needs to be investigated more thoroughly, but for now we can
just not include this information.
Resolves: rhbz#2371256
Conflict: NA
Reference: https://github.com/storaged-project/blivet/commit/e231d01e62be2914d659df15e5adc78f0aa3ec34
---
blivet/tasks/availability.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/tasks/availability.py b/blivet/tasks/availability.py
index 388b199c1..e93687a97 100644
--- a/blivet/tasks/availability.py
+++ b/blivet/tasks/availability.py
@@ -225,7 +225,7 @@ def _check_technologies(self):
try:
self._tech_info.check_fn(tech, mode)
except GLib.GError as e:
- errors.append("%s: %s" % (tech.value_name, e.message))
+ errors.append("%s" % e.message)
return errors
def availability_errors(self, resource):
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-blivet.git
git@gitee.com:src-openeuler/python-blivet.git
src-openeuler
python-blivet
python-blivet
master

搜索帮助