From 9d73fed5140bb8b2db04252795f80ac59064755e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 21 Aug 2020 15:07:34 +0200 Subject: [PATCH] Filter out empty REQUESTED files in pip installed Python metadata dist-info dirs --- rpmlint.config | 2 ++ rpmlint.spec | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rpmlint.config b/rpmlint.config index d0efdd6..b259872 100644 --- a/rpmlint.config +++ b/rpmlint.config @@ -459,6 +459,8 @@ addFilter("non-standard-dir-perm /var/lib/.* 700") addFilter("info-files-without-install-info-postin") addFilter("info-files-without-install-info-postun") addFilter("postin-without-install-info") +# pip 20.2 generates PEP 376 "REQUESTED" marker (empty) +addFilter(r"zero-length .+/site-packages/.+\.dist-info/REQUESTED\b") bad_crypto_warning = \ '''This application package calls a function to explicitly set crypto ciphers diff --git a/rpmlint.spec b/rpmlint.spec index 5fc026e..51025a0 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -20,7 +20,7 @@ Name: rpmlint Version: 1.11 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Tool for checking common errors in RPM packages License: GPLv2 URL: https://github.com/rpm-software-management/rpmlint @@ -162,6 +162,9 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8} %{_mandir}/man1/rpmlint.1* %changelog +* Fri Aug 21 2020 Miro HronĨok - 1.11-12 +- Filter out empty REQUESTED files in pip installed Python metadata dist-info dirs + * Wed Jul 29 2020 Fedora Release Engineering - 1.11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild