Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rpmlint for openSUSE:Factory checked 
in at 2022-07-15 13:52:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rpmlint (Old)
 and      /work/SRC/openSUSE:Factory/.rpmlint.new.1523 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rpmlint"

Fri Jul 15 13:52:12 2022 rev:404 rq:989092 version:2.3.0+git20220712.761ddf0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rpmlint/rpmlint.changes  2022-07-12 
11:12:28.243700903 +0200
+++ /work/SRC/openSUSE:Factory/.rpmlint.new.1523/rpmlint.changes        
2022-07-15 13:52:13.611558556 +0200
@@ -1,0 +2,8 @@
+Tue Jul 12 20:38:18 UTC 2022 - Martin Li??ka <mli...@suse.cz>
+
+- Update to version 2.3.0+git20220712.761ddf0:
+  * Improve syntax validation for digests.
+- Add skip-rpmlint-for-rpmlint.patch patch that skip linter
+  this package.
+
+-------------------------------------------------------------------

Old:
----
  rpmlint-2.3.0+git20220711.46e6323.tar.xz

New:
----
  rpmlint-2.3.0+git20220712.761ddf0.tar.xz
  skip-rpmlint-for-rpmlint.patch

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

Other differences:
------------------
++++++ rpmlint.spec ++++++
--- /var/tmp/diff_new_pack.MRD85G/_old  2022-07-15 13:52:14.463558831 +0200
+++ /var/tmp/diff_new_pack.MRD85G/_new  2022-07-15 13:52:14.483558838 +0200
@@ -23,13 +23,14 @@
 %define name_suffix -%{flavor}
 %endif
 Name:           rpmlint%{name_suffix}
-Version:        2.3.0+git20220711.46e6323
+Version:        2.3.0+git20220712.761ddf0
 Release:        0
 Summary:        RPM file correctness checker
 License:        GPL-2.0-or-later
 URL:            https://github.com/rpm-software-management/rpmlint
 Source0:        rpmlint-%{version}.tar.xz
 Patch0:         disable-flake.patch
+Patch1:         skip-rpmlint-for-rpmlint.patch
 BuildRequires:  fdupes
 BuildRequires:  python3-setuptools
 BuildArch:      noarch

++++++ _service ++++++
--- /var/tmp/diff_new_pack.MRD85G/_old  2022-07-15 13:52:14.535558854 +0200
+++ /var/tmp/diff_new_pack.MRD85G/_new  2022-07-15 13:52:14.539558856 +0200
@@ -3,7 +3,7 @@
     <param name="versionformat">2.3.0+git%cd.%h</param>
     <param 
name="url">https://github.com/rpm-software-management/rpmlint.git</param>
     <param name="scm">git</param>
-    <param name="revision">opensuse</param>
+    <param name="revision">761ddf0910eaed2614433c57fc1a7c14b1983ee8</param>
     <param name="changesgenerate">enable</param>
   </service>
   <service name="recompress" mode="disabled">

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.MRD85G/_old  2022-07-15 13:52:14.555558861 +0200
+++ /var/tmp/diff_new_pack.MRD85G/_new  2022-07-15 13:52:14.555558861 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/rpm-software-management/rpmlint.git</param>
-              <param 
name="changesrevision">43a2c9424d3978250229477fc28426610c79d9a7</param></service></servicedata>
+              <param 
name="changesrevision">761ddf0910eaed2614433c57fc1a7c14b1983ee8</param></service></servicedata>
 (No newline at EOF)
 

++++++ rpmlint-2.3.0+git20220711.46e6323.tar.xz -> 
rpmlint-2.3.0+git20220712.761ddf0.tar.xz ++++++
/work/SRC/openSUSE:Factory/rpmlint/rpmlint-2.3.0+git20220711.46e6323.tar.xz 
/work/SRC/openSUSE:Factory/.rpmlint.new.1523/rpmlint-2.3.0+git20220712.761ddf0.tar.xz
 differ: char 15, line 1

++++++ skip-rpmlint-for-rpmlint.patch ++++++
diff --git a/rpmlint/lint.py b/rpmlint/lint.py
index 7afadbc3..df5437e4 100644
--- a/rpmlint/lint.py
+++ b/rpmlint/lint.py
@@ -5,6 +5,7 @@ import operator
 import os
 from pathlib import Path
 from pstats import Stats
+import re
 import sys
 from tempfile import gettempdir
 import time
@@ -22,6 +23,8 @@ class Lint(object):
     Generic object handling the basic rpmlint operations
     """
 
+    rpmlint_package = 
re.compile(r'/home/abuild/rpmbuild/RPMS/noarch/rpmlint-\d')
+
     def __init__(self, options):
         # initialize configuration
         self.checks = {}
@@ -53,6 +56,15 @@ class Lint(object):
             self.config.configuration['ExtractDir'] = gettempdir()
         # initialize output buffer
         self.output = Filter(self.config)
+
+        # Do not run rpmlint on rpmlint package that easily leads
+        # to run-time error as old rpmlint (taken from rpmlint-mini)
+        # uses a modified configuration.
+        for file in self.options['rpmfile']:
+            if self.rpmlint_package.search(str(file)):
+                print('Skipping rpmlint for rpmlint package!')
+                sys.exit(0)
+
         # preload the check list if we not print config
         # some of the config values are transformed e.g. to regular
         # expressions

Reply via email to