!158 apibuild: Fix self.waring method call

From: @yezengruan 
Reviewed-by: @kevinzhu1 
Signed-off-by: @kevinzhu1
This commit is contained in:
openeuler-ci-bot 2022-08-11 12:33:48 +00:00 committed by Gitee
commit 1dd8bdc017
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From 58d0830491d3be2fedec55f42f6f832d32783a73 Mon Sep 17 00:00:00 2001
From: luzhipeng <luzhipeng@cestc.cn>
Date: Sat, 7 May 2022 09:17:31 +0800
Subject: [PATCH] apibuild: Fix self.waring method call
The parameters of self.warning is inconsistent with its definition, So
fix it.
Signed-off-by: dinglimin <dinglimin@cmss.chinamobile.com>
Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
---
scripts/apibuild.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/apibuild.py b/scripts/apibuild.py
index 05a169c30d..c98bcf6091 100755
--- a/scripts/apibuild.py
+++ b/scripts/apibuild.py
@@ -315,7 +315,7 @@ class index:
if type in type_map:
type_map[type][name] = d
else:
- self.warning("Unable to register type ", type)
+ self.warning("Unable to register type %s" % type)
if name == debugsym and not quiet:
print("New symbol: %s" % (d))
--
2.27.0

View File

@ -101,7 +101,7 @@
Summary: Library providing a simple virtualization API Summary: Library providing a simple virtualization API
Name: libvirt Name: libvirt
Version: 6.2.0 Version: 6.2.0
Release: 40 Release: 41
License: LGPLv2+ License: LGPLv2+
URL: https://libvirt.org/ URL: https://libvirt.org/
@ -250,6 +250,7 @@ Patch0137: virsh-Display-vhostuser-socket-path-in-domblklist.patch
Patch0138: sw_64-Add-sw64-architecture-support.patch Patch0138: sw_64-Add-sw64-architecture-support.patch
Patch0139: src-workaround-warning-triggered-in-glib-2.69.patch Patch0139: src-workaround-warning-triggered-in-glib-2.69.patch
Patch0140: nwfilter-fix-crash-when-counting-number-of-network-f.patch Patch0140: nwfilter-fix-crash-when-counting-number-of-network-f.patch
Patch0141: apibuild-Fix-self.waring-method-call.patch
Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon = %{version}-%{release}
Requires: libvirt-daemon-config-network = %{version}-%{release} Requires: libvirt-daemon-config-network = %{version}-%{release}
@ -1984,6 +1985,9 @@ exit 0
%changelog %changelog
* Thu Aug 11 2022 yezengruan <yezengruan@huawei.com> - 6.2.0-41
- apibuild: Fix self.waring method call
* Mon Jun 20 2022 yezengruan <yezengruan@huawei.com> - 6.2.0-40 * Mon Jun 20 2022 yezengruan <yezengruan@huawei.com> - 6.2.0-40
- nwfilter: fix crash when counting number of network filters (CVE-2022-0897) - nwfilter: fix crash when counting number of network filters (CVE-2022-0897)