Hello community, here is the log from the commit of package trytond for openSUSE:Factory checked in at 2019-09-23 12:46:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond (Old) and /work/SRC/openSUSE:Factory/.trytond.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond" Mon Sep 23 12:46:22 2019 rev:35 rq:732525 version:4.6.20 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond/trytond.changes 2019-08-28 18:36:21.997274477 +0200 +++ /work/SRC/openSUSE:Factory/.trytond.new.7948/trytond.changes 2019-09-23 12:46:25.145521104 +0200 @@ -1,0 +2,5 @@ +Sun Sep 15 16:38:13 UTC 2019 - Axel Braun <axel.br...@gmx.de> + +- Version 4.6.20 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond-4.6.19.tar.gz New: ---- trytond-4.6.20.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond.spec ++++++ --- /var/tmp/diff_new_pack.RCV9Dn/_old 2019-09-23 12:46:25.781520999 +0200 +++ /var/tmp/diff_new_pack.RCV9Dn/_new 2019-09-23 12:46:25.785520999 +0200 @@ -20,7 +20,7 @@ %define majorver 4.6 %define base_name tryton Name: trytond -Version: %{majorver}.19 +Version: %{majorver}.20 Release: 0 Summary: An Enterprise Resource Planning (ERP) system ++++++ trytond-4.6.19.tar.gz -> trytond-4.6.20.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.6.19/.hgtags new/trytond-4.6.20/.hgtags --- old/trytond-4.6.19/.hgtags 2019-08-17 11:54:43.000000000 +0200 +++ new/trytond-4.6.20/.hgtags 2019-09-15 14:11:58.000000000 +0200 @@ -36,3 +36,4 @@ b05891693d5db22f2e585246559825f4b047f62c 4.6.17 2fab4255222aaa45586f14ecc9a91c7cba633a69 4.6.18 d93c88d939d937c37beced393d7d9628529232eb 4.6.19 +1d3c174a7e052deba0816c8ae6138a42a525086e 4.6.20 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.6.19/CHANGELOG new/trytond-4.6.20/CHANGELOG --- old/trytond-4.6.19/CHANGELOG 2019-08-17 11:54:43.000000000 +0200 +++ new/trytond-4.6.20/CHANGELOG 2019-09-15 14:11:57.000000000 +0200 @@ -1,3 +1,6 @@ +Version 4.6.20 - 2019-09-15 +* Bug fixes (see mercurial logs for details) + Version 4.6.19 - 2019-08-17 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.6.19/PKG-INFO new/trytond-4.6.20/PKG-INFO --- old/trytond-4.6.19/PKG-INFO 2019-08-17 11:54:44.000000000 +0200 +++ new/trytond-4.6.20/PKG-INFO 2019-09-15 14:11:59.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 4.6.19 +Version: 4.6.20 Summary: Tryton server Home-page: http://www.tryton.org/ Author: Tryton diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.6.19/trytond/__init__.py new/trytond-4.6.20/trytond/__init__.py --- old/trytond-4.6.19/trytond/__init__.py 2019-08-01 23:00:54.000000000 +0200 +++ new/trytond-4.6.20/trytond/__init__.py 2019-08-17 11:55:19.000000000 +0200 @@ -5,7 +5,7 @@ import warnings from email import charset -__version__ = "4.6.19" +__version__ = "4.6.20" os.environ['TZ'] = 'UTC' if hasattr(time, 'tzset'): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.6.19/trytond/ir/action.py new/trytond-4.6.20/trytond/ir/action.py --- old/trytond-4.6.19/trytond/ir/action.py 2018-08-20 22:55:19.000000000 +0200 +++ new/trytond-4.6.20/trytond/ir/action.py 2019-09-04 20:39:09.000000000 +0200 @@ -654,9 +654,8 @@ @fields.depends('name', 'template_extension') def on_change_with_report_content_name(self, name=None): - if not self.name: - return - return ''.join([self.name, os.extsep, self.template_extension]) + return ''.join( + filter(None, [self.name, os.extsep, self.template_extension])) @classmethod def get_pyson(cls, reports, name): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.6.19/trytond/sendmail.py new/trytond-4.6.20/trytond/sendmail.py --- old/trytond-4.6.19/trytond/sendmail.py 2018-08-20 22:55:19.000000000 +0200 +++ new/trytond-4.6.20/trytond/sendmail.py 2019-09-12 23:23:25.000000000 +0200 @@ -4,6 +4,7 @@ import smtplib import urllib from email.message import Message +from email.utils import formatdate from urlparse import parse_qs from .config import config, parse_uri @@ -30,6 +31,8 @@ quit = True else: quit = False + if 'Date' not in msg: + msg['Date'] = formatdate() try: senderrs = server.sendmail(from_addr, to_addrs, msg.as_string()) except smtplib.SMTPException: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.6.19/trytond/tests/test_sendmail.py new/trytond-4.6.20/trytond/tests/test_sendmail.py --- old/trytond-4.6.19/trytond/tests/test_sendmail.py 2018-08-20 22:55:19.000000000 +0200 +++ new/trytond-4.6.20/trytond/tests/test_sendmail.py 2019-09-12 23:23:25.000000000 +0200 @@ -4,7 +4,7 @@ import smtplib import sys from email.message import Message -from mock import Mock, patch, call +from mock import Mock, MagicMock, patch, call from trytond.sendmail import ( sendmail_transactional, sendmail, SMTPDataManager, get_smtp_server) @@ -22,7 +22,7 @@ @with_transaction() def test_sendmail_transactional(self): 'Test sendmail_transactional' - message = Mock() + message = MagicMock() datamanager = Mock() sendmail_transactional( 'try...@example.com', 'f...@example.com', message, @@ -33,7 +33,7 @@ def test_sendmail(self): 'Test sendmail' - message = Mock() + message = MagicMock() server = Mock() sendmail( 'try...@example.com', 'f...@example.com', message, server=server) @@ -91,8 +91,8 @@ # multiple join must return the same self.assertEqual(transaction.join(SMTPDataManager()), datamanager) - msg1 = Mock(Message) - msg2 = Mock(Message) + msg1 = MagicMock(Message) + msg2 = MagicMock(Message) datamanager.put('f...@example.com', 'b...@example.com', msg1) datamanager.put('b...@example.com', 'f...@example.com', msg2) @@ -107,7 +107,8 @@ server.reset_mock() - datamanager.put('f...@example.com', 'b...@example.com', Mock(Message)) + datamanager.put( + 'f...@example.com', 'b...@example.com', MagicMock(Message)) transaction.rollback() server.sendmail.assert_not_called() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.6.19/trytond.egg-info/PKG-INFO new/trytond-4.6.20/trytond.egg-info/PKG-INFO --- old/trytond-4.6.19/trytond.egg-info/PKG-INFO 2019-08-17 11:54:44.000000000 +0200 +++ new/trytond-4.6.20/trytond.egg-info/PKG-INFO 2019-09-15 14:11:58.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 4.6.19 +Version: 4.6.20 Summary: Tryton server Home-page: http://www.tryton.org/ Author: Tryton