From 5df25abf9e6ce57b51c82984eb8677f08baf453e Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 18 May 2022 12:58:10 +0200 Subject: [PATCH] Skip shared-library-without-dependency-information for python. Fixes: 864. --- rpmlint/checks/BinariesCheck.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpmlint/checks/BinariesCheck.py b/rpmlint/checks/BinariesCheck.py index c646cc3a3..1a341e2ff 100644 --- a/rpmlint/checks/BinariesCheck.py +++ b/rpmlint/checks/BinariesCheck.py @@ -437,7 +437,9 @@ def _check_rpath(self, pkg, pkgfile): def _check_library_dependency(self, pkg, pkgfile): if self.is_archive: return - if any(pkgfile.name.startswith(p) for p in KERNEL_MODULES_PATHS): + elif any(pkgfile.name.startswith(p) for p in KERNEL_MODULES_PATHS): + return + elif self.python_module_regex.fullmatch(pkgfile.name): return dyn_section = self.readelf_parser.dynamic_section_info