Ignore hidden-file-or-dir for .cargo-checksum.json
This commit is contained in:
parent
5a955c2acc
commit
cfe9d89a45
24
700.patch
Normal file
24
700.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From b03a6c261f9a85d3b29a8801dc9bf51661ee2b47 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Martin Liska <mliska@suse.cz>
|
||||||
|
Date: Sun, 5 Sep 2021 20:40:22 +0200
|
||||||
|
Subject: [PATCH] Skip .cargo-checksum.json files in `hidden-file-or-dir`.
|
||||||
|
|
||||||
|
Fixes #699.
|
||||||
|
---
|
||||||
|
rpmlint/checks/FilesCheck.py | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/rpmlint/checks/FilesCheck.py b/rpmlint/checks/FilesCheck.py
|
||||||
|
index d1f1e6ed..c2aa30b7 100644
|
||||||
|
--- a/rpmlint/checks/FilesCheck.py
|
||||||
|
+++ b/rpmlint/checks/FilesCheck.py
|
||||||
|
@@ -540,7 +540,8 @@ def check(self, pkg):
|
||||||
|
self.output.add_info('E', pkg, 'version-control-internal-file', f)
|
||||||
|
elif f.endswith('/.htaccess'):
|
||||||
|
self.output.add_info('E', pkg, 'htaccess-file', f)
|
||||||
|
- elif hidden_file_regex.search(f) and not f.startswith('/etc/skel/') and not f.endswith('/.build-id'):
|
||||||
|
+ elif (hidden_file_regex.search(f) and not f.startswith('/etc/skel/') and
|
||||||
|
+ not f.endswith('/.build-id') and not f.endswith('/.cargo-checksum.json')):
|
||||||
|
self.output.add_info('W', pkg, 'hidden-file-or-dir', f)
|
||||||
|
elif manifest_perl_regex.search(f):
|
||||||
|
self.output.add_info('W', pkg, 'manifest-in-perl-module', f)
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: rpmlint
|
Name: rpmlint
|
||||||
Version: 2.1.0
|
Version: 2.1.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Tool for checking common errors in RPM packages
|
Summary: Tool for checking common errors in RPM packages
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/rpm-software-management/rpmlint
|
URL: https://github.com/rpm-software-management/rpmlint
|
||||||
@ -14,6 +14,8 @@ Source3: scoring.toml
|
|||||||
Source4: users-groups.toml
|
Source4: users-groups.toml
|
||||||
Source5: warn-on-functions.toml
|
Source5: warn-on-functions.toml
|
||||||
Patch0: rpmlint-2.1.0-include-iso-639-2-collective-language-codes.patch
|
Patch0: rpmlint-2.1.0-include-iso-639-2-collective-language-codes.patch
|
||||||
|
# Ignore hidden-file-or-dir for .cargo-checksum.json, merged upstream
|
||||||
|
Patch1: https://github.com/rpm-software-management/rpmlint/pull/700.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: %{py3_dist setuptools}
|
BuildRequires: %{py3_dist setuptools}
|
||||||
@ -41,6 +43,7 @@ and source packages as well as spec files can be checked.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
%patch0 -p1 -b .iso-639-2
|
%patch0 -p1 -b .iso-639-2
|
||||||
|
%patch1 -p1 -b .700
|
||||||
|
|
||||||
# Don't lint the code or measure coverage in %%check
|
# Don't lint the code or measure coverage in %%check
|
||||||
sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg
|
sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg
|
||||||
@ -68,6 +71,9 @@ cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{buildroot}%{_sysc
|
|||||||
%{python3_sitelib}/rpmlint*
|
%{python3_sitelib}/rpmlint*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Sep 05 2021 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-3
|
||||||
|
- Ignore hidden-file-or-dir for .cargo-checksum.json
|
||||||
|
|
||||||
* Tue Aug 17 2021 Tom Callaway <spot@fedoraproject.org> - 2.1.0-2
|
* Tue Aug 17 2021 Tom Callaway <spot@fedoraproject.org> - 2.1.0-2
|
||||||
- include iso-639-2 collective language codes in LANGUAGES
|
- include iso-639-2 collective language codes in LANGUAGES
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user