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 2022-06-03 14:15:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old) and /work/SRC/openSUSE:Factory/.python-libvirt-python.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libvirt-python" Fri Jun 3 14:15:32 2022 rev:57 rq:980404 version:8.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes 2022-05-12 22:57:34.140571936 +0200 +++ /work/SRC/openSUSE:Factory/.python-libvirt-python.new.1548/python-libvirt-python.changes 2022-06-03 14:15:45.417245583 +0200 @@ -1,0 +2,6 @@ +Wed Jun 1 17:19:54 UTC 2022 - James Fehlig <jfeh...@suse.com> + +- Update to 8.4.0 + - Add all new APIs and constants in libvirt 8.4.0 + +------------------------------------------------------------------- Old: ---- libvirt-python-8.3.0.tar.gz New: ---- libvirt-python-8.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-libvirt-python.spec ++++++ --- /var/tmp/diff_new_pack.x9aRyd/_old 2022-06-03 14:15:45.957246285 +0200 +++ /var/tmp/diff_new_pack.x9aRyd/_new 2022-06-03 14:15:45.961246290 +0200 @@ -23,7 +23,7 @@ %define srcname libvirt-python Name: python-libvirt-python URL: https://libvirt.org/ -Version: 8.3.0 +Version: 8.4.0 Release: 0 Summary: Library providing a virtualization API License: LGPL-2.1-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.x9aRyd/_old 2022-06-03 14:15:45.993246331 +0200 +++ /var/tmp/diff_new_pack.x9aRyd/_new 2022-06-03 14:15:45.997246337 +0200 @@ -1,7 +1,7 @@ <services> <service name="tar_scm" mode="disabled"> <param name="filename">libvirt-python</param> - <param name="revision">v8.3.0</param> + <param name="revision">v8.4.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-8.3.0.tar.gz -> libvirt-python-8.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-8.3.0/generator.py new/libvirt-python-8.4.0/generator.py --- old/libvirt-python-8.3.0/generator.py 2022-04-21 17:00:29.000000000 +0200 +++ new/libvirt-python-8.4.0/generator.py 2022-05-13 13:28:11.000000000 +0200 @@ -431,6 +431,8 @@ 'virDomainAuthorizedSSHKeysSet', 'virDomainGetMessages', 'virNodeDeviceGetAutostart', + 'virDomainSaveParams', + 'virDomainRestoreParams', 'virDomainLxcOpenNamespace', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-8.3.0/libvirt-override-api.xml new/libvirt-python-8.4.0/libvirt-override-api.xml --- old/libvirt-python-8.3.0/libvirt-override-api.xml 2022-04-21 17:00:29.000000000 +0200 +++ new/libvirt-python-8.4.0/libvirt-override-api.xml 2022-05-13 13:28:11.000000000 +0200 @@ -852,5 +852,19 @@ <arg name='params' type='virTypedParameterPtr' info='pointer to launch security state objects'/> <arg name='flags' type='unsigned int' info='currently used, set to 0.'/> </function> + <function name='virDomainSaveParams' file='python'> + <info>This method will suspend a domain and save its memory contents to a file on disk.</info> + <return type='int' info='0 in case of success and -1 in case of failure'/> + <arg name='domain' type='virDomainPtr' info='pointer to domain object'/> + <arg name='params' type='virTypedParameterPtr' info='pointer to save parameter objects'/> + <arg name='flags' type='int' info='an OR'ed set of virDomainSaveRestoreFlags'/> + </function> + <function name='virDomainRestoreParams' file='python'> + <info>This method will restore a domain saved to disk.</info> + <return type='int' info='0 in case of success and -1 in case of failure'/> + <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> + <arg name='params' type='virTypedParameterPtr' info='pointer to save parameter objects'/> + <arg name='flags' type='int' info='an OR'ed set of virDomainSaveRestoreFlags'/> + </function> </symbols> </api> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-8.3.0/libvirt-override.c new/libvirt-python-8.4.0/libvirt-override.c --- old/libvirt-python-8.3.0/libvirt-override.c 2022-04-21 17:00:29.000000000 +0200 +++ new/libvirt-python-8.4.0/libvirt-override.c 2022-05-13 13:28:11.000000000 +0200 @@ -10696,6 +10696,91 @@ } #endif /* LIBVIR_CHECK_VERSION(8, 0, 0) */ + +#if LIBVIR_CHECK_VERSION(8, 4, 0) +static virPyTypedParamsHint virPyDomainSaveParams[] = { + { VIR_DOMAIN_SAVE_PARAM_FILE, VIR_TYPED_PARAM_STRING }, + { VIR_DOMAIN_SAVE_PARAM_DXML, VIR_TYPED_PARAM_STRING }, +}; + + +static PyObject * +libvirt_virDomainSaveParams(PyObject *self ATTRIBUTE_UNUSED, + PyObject *args) +{ + PyObject *pyobj_dom = NULL; + PyObject *pyobj_dict = NULL; + virDomainPtr dom; + virTypedParameterPtr params = NULL; + int nparams = 0; + unsigned int flags = 0; + int c_retval; + + if (!PyArg_ParseTuple(args, (char *)"OO|I:virDomainSaveParams", + &pyobj_dom, &pyobj_dict, &flags)) + return NULL; + + if (PyDict_Check(pyobj_dict)) { + if (virPyDictToTypedParams(pyobj_dict, ¶ms, &nparams, + virPyDomainSaveParams, + VIR_N_ELEMENTS(virPyDomainSaveParams)) < 0) { + return NULL; + } + } else { + PyErr_Format(PyExc_TypeError, "Save params must be a dictionary"); + return NULL; + } + + dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom); + + LIBVIRT_BEGIN_ALLOW_THREADS; + c_retval = virDomainSaveParams(dom, params, nparams, flags); + LIBVIRT_END_ALLOW_THREADS; + + virTypedParamsFree(params, nparams); + + return libvirt_intWrap(c_retval); +} + +static PyObject * +libvirt_virDomainRestoreParams(PyObject *self ATTRIBUTE_UNUSED, + PyObject *args) +{ + PyObject *pyobj_conn = NULL; + PyObject *pyobj_dict = NULL; + virConnectPtr conn; + virTypedParameterPtr params = NULL; + int nparams = 0; + unsigned int flags = 0; + int c_retval; + + if (!PyArg_ParseTuple(args, (char *)"OO|I:virDomainRestoreParams", + &pyobj_conn, &pyobj_dict, &flags)) + return NULL; + + if (PyDict_Check(pyobj_dict)) { + if (virPyDictToTypedParams(pyobj_dict, ¶ms, &nparams, + virPyDomainSaveParams, + VIR_N_ELEMENTS(virPyDomainSaveParams)) < 0) { + return NULL; + } + } else { + PyErr_Format(PyExc_TypeError, "Restore params must be a dictionary"); + return NULL; + } + + conn = (virConnectPtr) PyvirConnect_Get(pyobj_conn); + + LIBVIRT_BEGIN_ALLOW_THREADS; + c_retval = virDomainRestoreParams(conn, params, nparams, flags); + LIBVIRT_END_ALLOW_THREADS; + + virTypedParamsFree(params, nparams); + + return libvirt_intWrap(c_retval); +} +#endif /* LIBVIR_CHECK_VERSION(8, 4, 0) */ + /************************************************************************ * * * The registration stuff * @@ -10973,6 +11058,10 @@ #if LIBVIR_CHECK_VERSION(8, 0, 0) {(char *) "virDomainSetLaunchSecurityState", libvirt_virDomainSetLaunchSecurityState, METH_VARARGS, NULL}, #endif /* LIBVIR_CHECK_VERSION(8, 0, 0) */ +#if LIBVIR_CHECK_VERSION(8, 4, 0) + {(char *) "virDomainSaveParams", libvirt_virDomainSaveParams, METH_VARARGS, NULL}, + {(char *) "virDomainRestoreParams", libvirt_virDomainRestoreParams, METH_VARARGS, NULL}, +#endif /* LIBVIR_CHECK_VERSION(8, 4, 0) */ {NULL, NULL, 0, NULL} }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-8.3.0/setup.py new/libvirt-python-8.4.0/setup.py --- old/libvirt-python-8.3.0/setup.py 2022-04-21 17:00:29.000000000 +0200 +++ new/libvirt-python-8.4.0/setup.py 2022-05-13 13:28:11.000000000 +0200 @@ -326,7 +326,7 @@ _c_modules, _py_modules = get_module_lists() setup(name = 'libvirt-python', - version = '8.3.0', + version = '8.4.0', url = 'http://www.libvirt.org', maintainer = 'Libvirt Maintainers', maintainer_email = 'libvir-l...@redhat.com',