Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package b4 for openSUSE:Factory checked in 
at 2023-10-24 20:08:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/b4 (Old)
 and      /work/SRC/openSUSE:Factory/.b4.new.24901 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "b4"

Tue Oct 24 20:08:48 2023 rev:38 rq:1119892 version:0.12.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/b4/b4.changes    2023-10-10 21:02:26.346736053 
+0200
+++ /work/SRC/openSUSE:Factory/.b4.new.24901/b4.changes 2023-10-24 
20:08:55.141750103 +0200
@@ -1,0 +2,8 @@
+Tue Oct 24 07:57:32 UTC 2023 - Jiri Slaby <jsl...@suse.cz>
+
+- update to 0.12.4:
+  * ez: ignore invalid unicode returned by get_maintainer
+  * Only pass -f to sendmail if envelopesender is set
+  * trailers: do not quote names when special chars are present
+
+-------------------------------------------------------------------

Old:
----
  b4-0.12.3.tar.gz

New:
----
  b4-0.12.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ b4.spec ++++++
--- /var/tmp/diff_new_pack.USh6UI/_old  2023-10-24 20:08:56.129786024 +0200
+++ /var/tmp/diff_new_pack.USh6UI/_new  2023-10-24 20:08:56.129786024 +0200
@@ -19,7 +19,7 @@
 %define pythons python3
 %{?sle15_python_module_pythons}
 Name:           b4
-Version:        0.12.3
+Version:        0.12.4
 Release:        0
 Summary:        Helper scripts for kernel.org patches
 License:        GPL-2.0-or-later

++++++ b4-0.12.3.tar.gz -> b4-0.12.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/b4-0.12.3/b4/__init__.py new/b4-0.12.4/b4/__init__.py
--- old/b4-0.12.3/b4/__init__.py        2023-06-23 19:50:24.000000000 +0200
+++ new/b4-0.12.4/b4/__init__.py        2023-10-20 21:01:24.000000000 +0200
@@ -60,7 +60,7 @@
 # global setting allowing us to turn off networking
 can_network = True
 
-__VERSION__ = '0.12.3'
+__VERSION__ = '0.12.4'
 PW_REST_API_VERSION = '1.2'
 
 
@@ -888,7 +888,7 @@
                 self.type = 'person'
                 self.addr = email.utils.parseaddr(value)
                 # Normalize the value with parsed data
-                self.value = format_addrs([self.addr])
+                self.value = f'{self.addr[0]} <{self.addr[1]}>'
             else:
                 self.type = 'unknown'
         self.lname = self.name.lower()
@@ -3213,14 +3213,13 @@
         # Do we have the envelopesender defined?
         env_sender = sconfig.get('envelopesender', '')
         if env_sender:
-            if env_sender == "auto":
+            if env_sender == 'auto':
                 envpair = email.utils.parseaddr(fromaddr)
             else:
                 envpair = email.utils.parseaddr(env_sender)
-        else:
-            envpair = email.utils.parseaddr(fromaddr)
-        if envpair[1]:
-            smtp += ['-f', envpair[1]]
+            if envpair[1]:
+                smtp += ['-f', envpair[1]]
+        logger.debug('sendmail command: %s', ' '.join(smtp))
         return smtp, fromaddr
 
     encryption = sconfig.get('smtpencryption')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/b4-0.12.3/b4/ez.py new/b4-0.12.4/b4/ez.py
--- old/b4-0.12.3/b4/ez.py      2023-06-23 19:50:24.000000000 +0200
+++ new/b4-0.12.4/b4/ez.py      2023-10-20 21:01:24.000000000 +0200
@@ -943,9 +943,9 @@
     ecode, out, err = b4._run_command(cmdargs, stdin=msgbytes, rundir=topdir)  
# noqa
     if ecode > 0:
         logger.critical('CRITICAL: Running %s failed:', ' '.join(cmdargs))
-        logger.critical(err.decode())
+        logger.critical(err.decode(errors='ignore'))
         raise RuntimeError('Running command failed: %s' % ' '.join(cmdargs))
-    addrs = out.strip().decode()
+    addrs = out.strip().decode(errors='ignore')
     if not addrs:
         return list()
     return utils.getaddresses(addrs.split('\n'))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/b4-0.12.3/tests/samples/trailers-followup-name-parens-ref-defaults.txt 
new/b4-0.12.4/tests/samples/trailers-followup-name-parens-ref-defaults.txt
--- old/b4-0.12.3/tests/samples/trailers-followup-name-parens-ref-defaults.txt  
1970-01-01 01:00:00.000000000 +0100
+++ new/b4-0.12.4/tests/samples/trailers-followup-name-parens-ref-defaults.txt  
2023-10-20 21:01:24.000000000 +0200
@@ -0,0 +1,33 @@
+From git@z Thu Jan  1 00:00:00 1970
+Subject: [PATCH] Simple test
+From: Test Test <t...@example.com>
+Date: Tue, 30 Aug 2022 11:19:07 -0400
+Message-Id: <orig-mess...@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 7bit
+
+Follow-up trailer collating test.
+
+Fixes: abcdef01234567890
+Reviewed-by: Original Reviewer <original-revie...@example.com>
+Link: https://msgid.link/s...@msgid.here
+Signed-off-by: Original Submitter <original-submit...@example.com>
+Reviewed-by: Followup Reviewer1 (corporate) <followup-review...@example.com>
+Tested-by: Followup Reviewer2 <followup-review...@example.com>
+---
+
+diff --git a/b4/junk.py b/b4/junk.py
+index 12345678..23456789 100644
+--- a/b4/junk.py
++++ b/b4/junk.py
+@@@ -1,1 +1,1 @@ def junk():
+ 
+ 
+-junk1
++junk2
+ 
+ 
+-- 
+2.wong.fu
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/b4-0.12.3/tests/samples/trailers-followup-name-parens.mbox 
new/b4-0.12.4/tests/samples/trailers-followup-name-parens.mbox
--- old/b4-0.12.3/tests/samples/trailers-followup-name-parens.mbox      
1970-01-01 01:00:00.000000000 +0100
+++ new/b4-0.12.4/tests/samples/trailers-followup-name-parens.mbox      
2023-10-20 21:01:24.000000000 +0200
@@ -0,0 +1,78 @@
+From foo@z Thu Jan  1 00:00:00 1970
+From: Test Test <t...@example.com>
+Subject: [PATCH] Simple test
+To: Some List <lis...@lists.example.com>
+Cc: Dev Eloper1 <dev-elop...@example.com>,
+ Dev Eloper2 <dev-elop...@example.com>
+Date: Tue, 30 Aug 2022 11:19:07 -0400
+Message-Id: <orig-mess...@example.com>
+
+Follow-up trailer collating test.
+
+Fixes: abcdef01234567890
+Reviewed-by: Original Reviewer <original-revie...@example.com>
+Link: https://msgid.link/s...@msgid.here
+Signed-off-by: Original Submitter <original-submit...@example.com>
+---
+
+diff --git a/b4/junk.py b/b4/junk.py
+index 12345678..23456789 100644
+--- a/b4/junk.py
++++ b/b4/junk.py
+@@@ -1,1 +1,1 @@ def junk():
+ 
+ 
+-junk1
++junk2
+ 
+ 
+-- 
+2.wong.fu
+
+From foo@z Thu Jan  1 00:00:00 1970
+From: Followup Reviewer1 <followup-review...@example.com>
+Subject: Re: [PATCH] Simple test
+Date: Tue, 30 Aug 2022 11:19:07 -0400
+Message-Id: <fwup-messag...@example.com>
+In-Reply-To: <orig-mess...@example.com>
+References: <orig-mess...@example.com>
+
+> This is a simple trailer parsing test.
+
+Reviewed-by: Followup Reviewer1 (corporate) <followup-review...@example.com>
+
+--
+My sig
+
+From foo@z Thu Jan  1 00:00:00 1970
+From: Followup Reviewer2 <followup-review...@example.com>
+Subject: Re: [PATCH] Simple test
+Date: Tue, 30 Aug 2022 11:19:07 -0400
+Message-Id: <fwup-messag...@example.com>
+In-Reply-To: <fwup-messag...@example.com>
+References: <orig-mess...@example.com> <fwup-messag...@example.com>
+
+>> This is a simple trailer parsing test.
+> 
+> Reviewed-by: Followup Reviewer1 <review...@example.com>
+
+Tested-by: Followup Reviewer2 <followup-review...@example.com>
+
+--
+My sig
+
+From foo@z Thu Jan  1 00:00:00 1970
+From: Mismatched Reviewer <mismatched-review...@example.com>
+Subject: Re: [PATCH] Simple test
+Date: Tue, 30 Aug 2022 11:19:07 -0400
+Message-Id: <fwup-messag...@example.com>
+In-Reply-To: <orig-mess...@example.com>
+References: <orig-mess...@example.com>
+
+> This is a simple trailer parsing test.
+
+Reviewed-by: Mismatched Reviewer1 <mismatched-review...@example.net>
+
+--
+My sig
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/b4-0.12.3/tests/test___init__.py 
new/b4-0.12.4/tests/test___init__.py
--- old/b4-0.12.3/tests/test___init__.py        2023-06-23 19:50:24.000000000 
+0200
+++ new/b4-0.12.4/tests/test___init__.py        2023-10-20 21:01:24.000000000 
+0200
@@ -99,6 +99,7 @@
      {'trailers-ignore-from': 'followup-review...@example.com'}),
     ('partial-reroll', {}, {'addmysob': True}, 'defaults', {}),
     ('nore', {}, {}, 'defaults', {}),
+    ('name-parens', {}, {}, 'defaults', {}),
 ])
 def test_followup_trailers(sampledir, source, serargs, amargs, reference, 
b4cfg):
     b4.MAIN_CONFIG.update(b4cfg)

Reply via email to