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

[lintian] 02/02: c/files: Assume "Multi-Arch: no" is default



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

jwilk pushed a commit to branch master
in repository lintian.

commit 20ad1f7fbe12ef94fd583291c0a76ac4ffc1bdfd
Author: Jakub Wilk <jwilk@debian.org>
Date:   Tue Jan 26 14:27:38 2016 +0100

    c/files: Assume "Multi-Arch: no" is default
---
 checks/files.pm  | 2 +-
 debian/changelog | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/checks/files.pm b/checks/files.pm
index eb32f3c..0651acb 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -845,7 +845,7 @@ sub run {
                       ) {
                         # ok old config style script tag it
                         tag 'old-style-config-script',$file;
-                        my $multiarch = $info->field('multi-arch','');
+                        my $multiarch = $info->field('multi-arch', 'no');
                         # could be ok but only if multi-arch: no
                         if($multiarch ne 'no' or $arch eq 'all') {
                             # check multi-arch path
diff --git a/debian/changelog b/debian/changelog
index 3db39f7..73cd81d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,10 @@ lintian (2.5.41) UNRELEASED; urgency=medium
 
   XXX: generate tag summary
 
+  * checks/files.pm:
+    + [JW] Treat packages without Multi-Arch field as if they had "Multi-Arch:
+      no".  Thanks to Bas Couwenberg for the bug report.
+
   * data/spelling/corrections:
     + [JW] Fix some corrections.
     + [JW] Add more corrections.

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


Reply to: