!53 revert fix load plugin warning

From: @sun_hai_10 
Reviewed-by: @swf504 
Signed-off-by: @swf504
This commit is contained in:
openeuler-ci-bot 2024-03-29 06:13:00 +00:00 committed by Gitee
commit 2a7a6f0ca8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 29 deletions

View File

@ -1,26 +0,0 @@
From 7a7e0c8b9f7184e43ff6cebf7370976beb409bf2 Mon Sep 17 00:00:00 2001
From: sun_hai_10 <sunhai10@huawei.com>
Date: Wed, 27 Mar 2024 15:11:51 +0800
Subject: [PATCH] fix plugin warning
---
src/python/gi/overrides/BlockDev.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/python/gi/overrides/BlockDev.py b/src/python/gi/overrides/BlockDev.py
index e2cb695..dd62445 100644
--- a/src/python/gi/overrides/BlockDev.py
+++ b/src/python/gi/overrides/BlockDev.py
@@ -1122,9 +1122,7 @@ __all__.append("nvme_connect")
def plugin_specs_from_names(plugin_names):
ret = []
for name in plugin_names:
- plugin = BlockDev.PluginSpec()
- plugin.name = bd_plugins[name.lower()]
- plugin.so_name = None
+ plugin = BlockDev.PluginSpec(name=bd_plugins[name.lower()], so_name=None)
ret.append(plugin)
return ret
--

View File

@ -3,14 +3,12 @@
Name: libblockdev
Version: 3.0.4
Release: 2
Release: 3
Summary: libblockdev is a C library supporting GObject introspection for manipulation of block devices
License: LGPLv2+
URL: https://github.com/storaged-project/libblockdev
Source0: https://github.com/storaged-project/libblockdev/releases/download/%{version}-1/%{name}-%{version}.tar.gz
Patch9001: 0001-fix-plugin-warning.patch
BuildRequires: make glib2-devel libyaml-devel libbytesize-devel parted-devel libuuid-devel ndctl-devel device-mapper-devel
BuildRequires: device-mapper-devel systemd-devel nss-devel volume_key-devel >= 0.3.9-7 libblkid-devel libmount-devel
BuildRequires: cryptsetup-devel kmod-devel libxslt glib2-doc gtk-doc python3-devel gobject-introspection-devel
@ -159,6 +157,12 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm}
%changelog
* Fri Mar 29 2024 sunhai <sunhai10@huawei.com> - 3.0.4-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: revert fix load plugin warning
* Wed Mar 27 2024 sunhai <sunhai10@huawei.com> - 3.0.4-2
- Type:bugfix
- ID:NA