Commit 43ab6dbe authored by Chris Lamb's avatar Chris Lamb 💬

Prevent false-positives for leading directory entries when checking for files...

Prevent false-positives for leading directory entries when checking for files installed outside of /usr. (re. MR: !128)
parent c192da83
......@@ -454,6 +454,7 @@ sub run {
tag 'package-contains-real-file-outside-usr', $file
if $fname =~ m,^(?:bin|sbin|lib.*)/.+$,
and not $file->is_symlink
and not $file->is_dir
and ($link // '') !~ m,^usr/$fname$,;
if ($file->is_hardlink) {
......
......@@ -102,7 +102,6 @@ W: files-foo-in-bar: package-installs-perllocal-pod usr/lib/perl-foo/perllocal.p
W: files-foo-in-bar: third-party-package-in-python-dir usr/lib/python2.7/bar
W: files-foo-in-bar: vim-addon-within-vim-runtime-path usr/share/vim/vim73/bar
W: files-foo-in-bar: vim-addon-within-vim-runtime-path usr/share/vim/vimcurrent/bar
X: files-foo-in-bar: package-contains-real-file-outside-usr bin/foo/
X: files-foo-in-bar: package-contains-real-file-outside-usr bin/foo/bar
X: files-foo-in-bar: package-contains-real-file-outside-usr lib32/bar
X: files-foo-in-bar: package-contains-real-file-outside-usr lib64/bar
......
E: files-package-contains-real-file-outside-usr: subdir-in-bin bin/subdir/
X: files-package-contains-real-file-outside-usr: package-contains-real-file-outside-usr bin/subdir/
X: files-package-contains-real-file-outside-usr: package-contains-real-file-outside-usr bin/subdir/file-outside-usr
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment