Hello community, here is the log from the commit of package b4 for openSUSE:Factory checked in at 2020-12-02 15:05:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/b4 (Old) and /work/SRC/openSUSE:Factory/.b4.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "b4" Wed Dec 2 15:05:51 2020 rev:8 rq:852601 version:0.5.4+0 Changes: -------- --- /work/SRC/openSUSE:Factory/b4/b4.changes 2020-11-29 12:29:30.638067862 +0100 +++ /work/SRC/openSUSE:Factory/.b4.new.5913/b4.changes 2020-12-02 15:05:53.629619364 +0100 @@ -1,0 +2,10 @@ +Wed Dec 02 12:10:32 UTC 2020 - jsl...@suse.cz + +- Update to version 0.5.4+0: + * Release 0.5.4 with the fix for b4 ty bug + * Fix b4 ty auto-matching + * Fix headers generated by "b4 ty" + * man: Drop apostrophe from midmask value + * Increment version to 0.5.4-dev + +------------------------------------------------------------------- Old: ---- b4-0.5.3+0.obscpio New: ---- b4-0.5.4+0.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ b4.spec ++++++ --- /var/tmp/diff_new_pack.O0PY7L/_old 2020-12-02 15:05:54.273620019 +0100 +++ /var/tmp/diff_new_pack.O0PY7L/_new 2020-12-02 15:05:54.277620024 +0100 @@ -17,9 +17,9 @@ %define skip_python2 1 -%define version_unconverted 0.5.3+0 +%define version_unconverted 0.5.4+0 Name: b4 -Version: 0.5.3+0 +Version: 0.5.4+0 Release: 0 Summary: Helper scripts for kernel.org patches License: GPL-2.0-or-later ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.O0PY7L/_old 2020-12-02 15:05:54.317620064 +0100 +++ /var/tmp/diff_new_pack.O0PY7L/_new 2020-12-02 15:05:54.317620064 +0100 @@ -1,4 +1,4 @@ <servicedata> <service name="tar_scm"> <param name="url">git://git.kernel.org/pub/scm/utils/b4/b4.git</param> - <param name="changesrevision">08d58022600f213e8f71d192fb672d03593f2c62</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">6d6adf338ec454304d8cb3d30684fce6c595b0df</param></service></servicedata> \ No newline at end of file ++++++ b4-0.5.3+0.obscpio -> b4-0.5.4+0.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/b4-0.5.3+0/b4/__init__.py new/b4-0.5.4+0/b4/__init__.py --- old/b4-0.5.3+0/b4/__init__.py 2020-11-25 23:04:35.000000000 +0100 +++ new/b4-0.5.4+0/b4/__init__.py 2020-12-01 17:01:45.000000000 +0100 @@ -28,7 +28,7 @@ charset.add_charset('utf-8', None) emlpolicy = email.policy.EmailPolicy(utf8=True, cte_type='8bit', max_line_length=None) -__VERSION__ = '0.5.3' +__VERSION__ = '0.5.4' ATTESTATION_FORMAT_VER = '0.1' logger = logging.getLogger('b4') @@ -833,7 +833,12 @@ except IndexError: pass - self.date = email.utils.parsedate_to_datetime(str(self.msg['Date'])) + msgdate = self.msg.get('Date') + if msgdate: + self.date = email.utils.parsedate_to_datetime(str(msgdate)) + else: + # An email without a Date: field? + self.date = datetime.datetime.now() diffre = re.compile(r'^(---.*\n\+\+\+|GIT binary patch|diff --git \w/\S+ \w/\S+)', re.M | re.I) diffstatre = re.compile(r'^\s*\d+ file.*\d+ (insertion|deletion)', re.M | re.I) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/b4-0.5.3+0/b4/ty.py new/b4-0.5.4+0/b4/ty.py --- old/b4-0.5.3+0/b4/ty.py 2020-11-25 23:04:35.000000000 +0100 +++ new/b4-0.5.4+0/b4/ty.py 2020-12-01 17:01:45.000000000 +0100 @@ -92,7 +92,8 @@ allto.append((jsondata['fromname'], jsondata['fromemail'])) msg['To'] = b4.format_addrs(allto) - msg['Cc'] = b4.format_addrs(allcc) + if allcc: + msg['Cc'] = b4.format_addrs(allcc) msg['In-Reply-To'] = '<%s>' % jsondata['msgid'] if len(jsondata['references']): msg['References'] = '%s <%s>' % (jsondata['references'], jsondata['msgid']) @@ -107,6 +108,7 @@ mydomain = jsondata['myemail'].split('@')[1] msg['Message-Id'] = email.utils.make_msgid(idstring='b4-ty', domain=mydomain) + msg['Date'] = email.utils.formatdate(localtime=True) return msg @@ -373,7 +375,7 @@ # Weed out series that have no matches at all found = False for commit in commits: - if commit[0] is not None: + if commit[1] is not None: found = True break if not found: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/b4-0.5.3+0/man/b4.5.rst new/b4-0.5.4+0/man/b4.5.rst --- old/b4-0.5.3+0/man/b4.5.rst 2020-11-25 23:04:35.000000000 +0100 +++ new/b4-0.5.4+0/man/b4.5.rst 2020-12-01 17:01:45.000000000 +0100 @@ -214,7 +214,7 @@ [b4] # Where to look up threads by message id - midmask = https://lore.kernel.org/r/%s' + midmask = https://lore.kernel.org/r/%s # # When recording Link: trailers, use this mask linkmask = https://lore.kernel.org/r/%s ++++++ b4.obsinfo ++++++ --- /var/tmp/diff_new_pack.O0PY7L/_old 2020-12-02 15:05:54.441620190 +0100 +++ /var/tmp/diff_new_pack.O0PY7L/_new 2020-12-02 15:05:54.441620190 +0100 @@ -1,5 +1,5 @@ name: b4 -version: 0.5.3+0 -mtime: 1606341875 -commit: 08d58022600f213e8f71d192fb672d03593f2c62 +version: 0.5.4+0 +mtime: 1606838505 +commit: 6d6adf338ec454304d8cb3d30684fce6c595b0df _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org