Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-libvirt-python for
openSUSE:Factory checked in at 2021-03-05 13:43:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
and /work/SRC/openSUSE:Factory/.python-libvirt-python.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libvirt-python"
Fri Mar 5 13:43:28 2021 rev:44 rq:876097 version:7.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes
2021-01-22 21:49:14.137586275 +0100
+++
/work/SRC/openSUSE:Factory/.python-libvirt-python.new.2378/python-libvirt-python.changes
2021-03-05 13:43:45.743539623 +0100
@@ -1,0 +2,6 @@
+Tue Mar 2 00:54:58 UTC 2021 - James Fehlig <[email protected]>
+
+- Update to 7.1.0
+ - Add all new APIs and constants in libvirt 7.1.0
+
+-------------------------------------------------------------------
Old:
----
libvirt-python-7.0.0.tar.gz
New:
----
libvirt-python-7.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.h8BcGi/_old 2021-03-05 13:43:46.391540213 +0100
+++ /var/tmp/diff_new_pack.h8BcGi/_new 2021-03-05 13:43:46.395540216 +0100
@@ -23,7 +23,7 @@
%define srcname libvirt-python
Name: python-libvirt-python
URL: https://libvirt.org/
-Version: 7.0.0
+Version: 7.1.0
Release: 0
Summary: Library providing a virtualization API
License: LGPL-2.1-or-later
++++++ _service ++++++
--- /var/tmp/diff_new_pack.h8BcGi/_old 2021-03-05 13:43:46.427540245 +0100
+++ /var/tmp/diff_new_pack.h8BcGi/_new 2021-03-05 13:43:46.427540245 +0100
@@ -1,7 +1,7 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">libvirt-python</param>
- <param name="revision">v7.0.0</param>
+ <param name="revision">v7.1.0</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://gitlab.com/libvirt/libvirt-python.git</param>
++++++ libvirt-python-7.0.0.tar.gz -> libvirt-python-7.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-7.0.0/README
new/libvirt-python-7.1.0/README
--- old/libvirt-python-7.0.0/README 2020-12-15 11:44:30.000000000 +0100
+++ new/libvirt-python-7.1.0/README 2021-03-01 09:51:40.000000000 +0100
@@ -1,5 +1,5 @@
- Libvirt Python Binding README
- =============================
+Libvirt Python Binding README
+=============================
This package provides a python binding to the libvirt.so,
libvirt-qemu.so and libvirt-lxc.so library APIs.
@@ -10,6 +10,15 @@
This code is distributed under the terms of the LGPL version
2 or later.
+Requirements
+------------
+
+To build the libvirt python binary requires the GCC and pkg-config
+tools, and development headers for the libvirt and python libraries.
+
+Building and installing
+-----------------------
+
The module can be built by following the normal python module
build process
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-7.0.0/generator.py
new/libvirt-python-7.1.0/generator.py
--- old/libvirt-python-7.0.0/generator.py 2020-12-15 11:44:30.000000000
+0100
+++ new/libvirt-python-7.1.0/generator.py 2021-03-01 09:51:40.000000000
+0100
@@ -479,6 +479,7 @@
'virDomainGetGuestInfo',
'virDomainAuthorizedSSHKeysGet',
'virDomainAuthorizedSSHKeysSet',
+ 'virDomainGetMessages',
}
lxc_skip_impl = {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-7.0.0/libvirt-override-api.xml
new/libvirt-python-7.1.0/libvirt-override-api.xml
--- old/libvirt-python-7.0.0/libvirt-override-api.xml 2020-12-15
11:44:30.000000000 +0100
+++ new/libvirt-python-7.1.0/libvirt-override-api.xml 2021-03-01
09:51:40.000000000 +0100
@@ -834,5 +834,11 @@
<arg name='keys' type='char *' info='optional list of authorized keys to
set/append/remove'/>
<arg name='flags' type='int' info='optional OR'ed set of
virDomainAuthorizedSSHKeysSetFlags'/>
</function>
+ <function name='virDomainGetMessages' file='python'>
+ <info>Fetch list of messages reported against domain.</info>
+ <return type='char *' info='list of messages'/>
+ <arg name='domain' type='virDomainPtr' info='a domain object'/>
+ <arg name='flags' type='unsigned int' info='optional fine-tuning flags'/>
+ </function>
</symbols>
</api>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-7.0.0/libvirt-override.c
new/libvirt-python-7.1.0/libvirt-override.c
--- old/libvirt-python-7.0.0/libvirt-override.c 2020-12-15 11:44:30.000000000
+0100
+++ new/libvirt-python-7.1.0/libvirt-override.c 2021-03-01 09:51:40.000000000
+0100
@@ -7232,7 +7232,7 @@
/* Call the Callback Dispatcher */
pyobj_ret = PyObject_CallMethod(pyobj_conn,
(char*)"_dispatchDomainEventBlockThresholdCallback",
- (char*)"OssiiO",
+ (char*)"OssLLO",
pyobj_dom, dev, path, threshold, excess,
pyobj_cbData);
@@ -10514,6 +10514,49 @@
}
#endif /* LIBVIR_CHECK_VERSION(6, 10, 0) */
+#if LIBVIR_CHECK_VERSION(7, 1, 0)
+static PyObject *
+libvirt_virDomainGetMessages(PyObject *self ATTRIBUTE_UNUSED,
+ PyObject *args)
+{
+ PyObject *pyobj_dom = NULL;
+ virDomainPtr dom = NULL;
+ char **msgs = NULL;
+ int nmsgs;
+ int i;
+ unsigned int flags;
+ PyObject *ret = NULL;
+
+ if (!PyArg_ParseTuple(args, (char *)"OI:virDomainGetMessages",
+ &pyobj_dom, &flags))
+ return NULL;
+ dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom);
+
+ LIBVIRT_BEGIN_ALLOW_THREADS;
+ nmsgs = virDomainGetMessages(dom, &msgs, flags);
+ LIBVIRT_END_ALLOW_THREADS;
+
+ if (nmsgs < 0)
+ return VIR_PY_NONE;
+
+ if ((ret = PyList_New(nmsgs)) == NULL)
+ goto error;
+
+ for (i = 0; i < nmsgs; i++)
+ VIR_PY_LIST_SET_GOTO(ret, i, libvirt_constcharPtrWrap(msgs[i]), error);
+
+ done:
+ for (i = 0; i < nmsgs; i++)
+ VIR_FREE(msgs[i]);
+ VIR_FREE(msgs);
+ return ret;
+
+ error:
+ Py_CLEAR(ret);
+ goto done;
+}
+#endif /* LIBVIR_CHECK_VERSION(7, 1, 0) */
+
/************************************************************************
* *
@@ -10783,6 +10826,9 @@
{(char *) "virDomainAuthorizedSSHKeysGet",
libvirt_virDomainAuthorizedSSHKeysGet, METH_VARARGS, NULL},
{(char *) "virDomainAuthorizedSSHKeysSet",
libvirt_virDomainAuthorizedSSHKeysSet, METH_VARARGS, NULL},
#endif /* LIBVIR_CHECK_VERSION(6, 10, 0) */
+#if LIBVIR_CHECK_VERSION(7, 1, 0)
+ {(char *) "virDomainGetMessages", libvirt_virDomainGetMessages,
METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(7, 1, 0) */
{NULL, NULL, 0, NULL}
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-7.0.0/setup.py
new/libvirt-python-7.1.0/setup.py
--- old/libvirt-python-7.0.0/setup.py 2020-12-15 11:44:30.000000000 +0100
+++ new/libvirt-python-7.1.0/setup.py 2021-03-01 09:51:40.000000000 +0100
@@ -341,7 +341,7 @@
_c_modules, _py_modules = get_module_lists()
setup(name = 'libvirt-python',
- version = '7.0.0',
+ version = '7.1.0',
url = 'http://www.libvirt.org',
maintainer = 'Libvirt Maintainers',
maintainer_email = '[email protected]',