Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-python-bindings for openSUSE:Factory checked in at 2022-07-21 11:32:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-python-bindings (Old) and /work/SRC/openSUSE:Factory/.yast2-python-bindings.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-python-bindings" Thu Jul 21 11:32:49 2022 rev:51 rq:989454 version:4.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-python-bindings/yast2-python-bindings.changes 2022-04-14 17:24:27.663192951 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-python-bindings.new.1523/yast2-python-bindings.changes 2022-07-21 11:33:11.978938057 +0200 @@ -1,0 +2,7 @@ +Wed Jun 22 12:44:19 UTC 2022 - Noel Power <nopo...@suse.com> + +- Fix core with python3.10 when calling yast2 samba-client; + (boo#1200804). +- 4.5.1 + +------------------------------------------------------------------- Old: ---- yast2-python-bindings-4.5.0.tar.bz2 New: ---- yast2-python-bindings-4.5.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-python-bindings.spec ++++++ --- /var/tmp/diff_new_pack.FH83zv/_old 2022-07-21 11:33:12.458938470 +0200 +++ /var/tmp/diff_new_pack.FH83zv/_new 2022-07-21 11:33:12.458938470 +0200 @@ -23,7 +23,7 @@ %bcond_with python2 %endif Name: yast2-python-bindings -Version: 4.5.0 +Version: 4.5.1 Release: 0 Summary: Python bindings for the YaST platform License: GPL-2.0-only ++++++ yast2-python-bindings-4.5.0.tar.bz2 -> yast2-python-bindings-4.5.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-python-bindings-4.5.0/package/yast2-python-bindings.changes new/yast2-python-bindings-4.5.1/package/yast2-python-bindings.changes --- old/yast2-python-bindings-4.5.0/package/yast2-python-bindings.changes 2022-04-12 13:36:56.000000000 +0200 +++ new/yast2-python-bindings-4.5.1/package/yast2-python-bindings.changes 2022-07-15 15:48:38.000000000 +0200 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Wed Jun 22 12:44:19 UTC 2022 - Noel Power <nopo...@suse.com> + +- Fix core with python3.10 when calling yast2 samba-client; + (boo#1200804). +- 4.5.1 + +------------------------------------------------------------------- Wed Apr 06 13:24:58 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> - Bump version to 4.5.0 (bsc#1198109) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-python-bindings-4.5.0/package/yast2-python-bindings.spec new/yast2-python-bindings-4.5.1/package/yast2-python-bindings.spec --- old/yast2-python-bindings-4.5.0/package/yast2-python-bindings.spec 2022-04-12 13:36:56.000000000 +0200 +++ new/yast2-python-bindings-4.5.1/package/yast2-python-bindings.spec 2022-07-15 15:48:38.000000000 +0200 @@ -23,7 +23,7 @@ %bcond_with python2 %endif Name: yast2-python-bindings -Version: 4.5.0 +Version: 4.5.1 Release: 0 Summary: Python bindings for the YaST platform License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-python-bindings-4.5.0/src/YPython.cc new/yast2-python-bindings-4.5.1/src/YPython.cc --- old/yast2-python-bindings-4.5.0/src/YPython.cc 2022-04-12 13:36:56.000000000 +0200 +++ new/yast2-python-bindings-4.5.1/src/YPython.cc 2022-07-15 15:48:38.000000000 +0200 @@ -114,7 +114,14 @@ YPython * YPython::_yPython = 0; -YPython::YPython():_pMainDicts(PyDict_New()) {} +YPython::YPython() +{ + //initialize python + if (!Py_IsInitialized()) { + Py_Initialize(); + } + _pMainDicts = PyDict_New(); +} YPython::~YPython() {} @@ -174,11 +181,6 @@ PyObject* pModuleName = NULL; PyObject* pMain = NULL; ModuleFilePath module(modulePath); - //initialize python - if (!Py_IsInitialized()) { - Py_Initialize(); - } - // put module path in os.path for loading append_to_sys_path(module.path().c_str());