[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/02: checks/files.pm: multiarch_dir will be undefined for "Architecture: all" packages.



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit b6f94ec7725fc94608d5c98f71c8f7fff84cbfa2
Author: Chris Lamb <lamby@debian.org>
Date:   Mon Dec 11 22:15:48 2017 +0000

    checks/files.pm: multiarch_dir will be undefined for "Architecture: all" packages.
---
 checks/files.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/checks/files.pm b/checks/files.pm
index 7473d19..98f4afb 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -1121,7 +1121,8 @@ sub run {
                 tag 'file-in-unusual-dir', $file;
             }
 
-            if ($fname =~ m,^usr/lib/\Q$multiarch_dir\E/(.*)$,) {
+            if (defined($multiarch_dir)
+                and $fname =~ m,^usr/lib/\Q$multiarch_dir\E/(.*)$,) {
                 my $tail = $1;
                 tag 'multiarch-foreign-cmake-file', $file
                   if ($tail =~ m,^cmake/.+\.cmake$,);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: