From b03a6c261f9a85d3b29a8801dc9bf51661ee2b47 Mon Sep 17 00:00:00 2001 From: Martin Liska 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)