Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package trytond for openSUSE:Factory checked in at 2022-07-03 18:27:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond (Old) and /work/SRC/openSUSE:Factory/.trytond.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond" Sun Jul 3 18:27:08 2022 rev:71 rq:986461 version:6.0.20 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond/trytond.changes 2022-06-12 17:43:12.798491080 +0200 +++ /work/SRC/openSUSE:Factory/.trytond.new.1548/trytond.changes 2022-07-03 18:27:13.892765408 +0200 @@ -1,0 +2,5 @@ +Sun Jul 3 13:14:01 UTC 2022 - Axel Braun <axel.br...@gmx.de> + +- Version 6.0.20 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond-6.0.19.tar.gz trytond-6.0.19.tar.gz.asc New: ---- trytond-6.0.20.tar.gz trytond-6.0.20.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond.spec ++++++ --- /var/tmp/diff_new_pack.sg1lwN/_old 2022-07-03 18:27:14.464766253 +0200 +++ /var/tmp/diff_new_pack.sg1lwN/_new 2022-07-03 18:27:14.472766266 +0200 @@ -20,7 +20,7 @@ %define majorver 6.0 %define base_name tryton Name: trytond -Version: %{majorver}.19 +Version: %{majorver}.20 Release: 0 Summary: An Enterprise Resource Planning (ERP) system License: GPL-3.0-or-later ++++++ trytond-6.0.19.tar.gz -> trytond-6.0.20.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.19/.hgtags new/trytond-6.0.20/.hgtags --- old/trytond-6.0.19/.hgtags 2022-06-03 19:03:20.000000000 +0200 +++ new/trytond-6.0.20/.hgtags 2022-07-01 23:06:01.000000000 +0200 @@ -43,3 +43,4 @@ 246ad7a2addde11a7b3e828ace36cf5fb1bc6696 6.0.17 ca63f7f2eef1998de82eae76636c00211f0e3a80 6.0.18 2973349bc8ca02dc5aba4fbf6a2e4ba270af9780 6.0.19 +9d5f5e04e2b0105bf4ca644bf98811d267054514 6.0.20 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.19/CHANGELOG new/trytond-6.0.20/CHANGELOG --- old/trytond-6.0.19/CHANGELOG 2022-06-03 19:03:19.000000000 +0200 +++ new/trytond-6.0.20/CHANGELOG 2022-07-01 23:06:00.000000000 +0200 @@ -1,3 +1,7 @@ +Version 6.0.20 - 2022-07-01 +* Bug fixes (see mercurial logs for details) +* Enforce certificate validation for SMTP connection (issue11564) + Version 6.0.19 - 2022-06-03 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.19/PKG-INFO new/trytond-6.0.20/PKG-INFO --- old/trytond-6.0.19/PKG-INFO 2022-06-03 19:03:24.455414800 +0200 +++ new/trytond-6.0.20/PKG-INFO 2022-07-01 23:06:05.441130600 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 6.0.19 +Version: 6.0.20 Summary: Tryton server Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/ @@ -66,5 +66,3 @@ Tryton is business software, ideal for companies of any size, easy to use, complete and 100% Open Source. It provides modularity, scalability and security. - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.19/trytond/__init__.py new/trytond-6.0.20/trytond/__init__.py --- old/trytond-6.0.19/trytond/__init__.py 2022-04-23 17:08:39.000000000 +0200 +++ new/trytond-6.0.20/trytond/__init__.py 2022-06-03 19:03:43.000000000 +0200 @@ -7,7 +7,7 @@ from lxml import etree, objectify -__version__ = "6.0.19" +__version__ = "6.0.20" os.environ['TZ'] = 'UTC' if hasattr(time, 'tzset'): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.19/trytond/sendmail.py new/trytond-6.0.20/trytond/sendmail.py --- old/trytond-6.0.19/trytond/sendmail.py 2022-04-14 23:25:02.000000000 +0200 +++ new/trytond-6.0.20/trytond/sendmail.py 2022-06-24 09:54:41.000000000 +0200 @@ -2,6 +2,7 @@ # this repository contains the full copyright notices and license terms. import logging import smtplib +import ssl from email.message import Message from email.utils import formatdate from email.mime.text import MIMEText @@ -69,6 +70,7 @@ extra[key] = cast.get(key, lambda a: a)(value[0]) if uri.scheme.startswith('smtps'): connector = smtplib.SMTP_SSL + extra['context'] = ssl.create_default_context() else: connector = smtplib.SMTP try: @@ -80,7 +82,7 @@ return if 'tls' in uri.scheme: - server.starttls() + server.starttls(context=ssl.create_default_context()) if uri.username and uri.password: server.login( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.19/trytond/tests/test_sendmail.py new/trytond-6.0.20/trytond/tests/test_sendmail.py --- old/trytond-6.0.19/trytond/tests/test_sendmail.py 2021-05-03 16:34:50.000000000 +0200 +++ new/trytond-6.0.20/trytond/tests/test_sendmail.py 2022-06-24 09:54:41.000000000 +0200 @@ -3,7 +3,7 @@ import smtplib import unittest from email.message import Message -from unittest.mock import Mock, MagicMock, patch, call +from unittest.mock import ANY, Mock, MagicMock, patch, call from trytond.sendmail import ( sendmail_transactional, sendmail, SMTPDataManager, get_smtp_server) @@ -58,14 +58,14 @@ SMTP.return_value = server = Mock() self.assertEqual( get_smtp_server('smtps://localhost:25'), server) - SMTP.assert_called_once_with('localhost', 25) + SMTP.assert_called_once_with('localhost', 25, context=ANY) with patch.object(smtplib, 'SMTP') as SMTP: SMTP.return_value = server = Mock() self.assertEqual( get_smtp_server('smtp+tls://localhost:25'), server) SMTP.assert_called_once_with('localhost', 25) - server.starttls.assert_called_once_with() + server.starttls.assert_called_once_with(context=ANY) def test_get_smtp_server_extra_parameters(self): 'Test get_smtp_server uri extra parameters' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.19/trytond.egg-info/PKG-INFO new/trytond-6.0.20/trytond.egg-info/PKG-INFO --- old/trytond-6.0.19/trytond.egg-info/PKG-INFO 2022-06-03 19:03:22.000000000 +0200 +++ new/trytond-6.0.20/trytond.egg-info/PKG-INFO 2022-07-01 23:06:04.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 6.0.19 +Version: 6.0.20 Summary: Tryton server Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/ @@ -66,5 +66,3 @@ Tryton is business software, ideal for companies of any size, easy to use, complete and 100% Open Source. It provides modularity, scalability and security. - -