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

[lintian] 01/01: Fix false positive for dir-or-file-in-build-tree



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

nthykier pushed a commit to branch master
in repository lintian.

commit 0c75e9cdf13d325076b60264ad8063d5539a22c1
Author: Bastien ROUCARIÈS <roucaries.bastien@gmail.com>
Date:   Mon Aug 26 10:50:02 2013 +0200

    Fix false positive for dir-or-file-in-build-tree
    
    Avoid raising this warning for package built from sbuild.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/files.pm  |    4 +++-
 debian/changelog |    3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/checks/files.pm b/checks/files.pm
index 960015a..4340268 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -776,7 +776,9 @@ sub run {
         elsif ($file =~ m,^var/cache/pbuilder/build/.,
             or $file =~ m,^var/lib/sbuild/.,
             or $file =~ m,^var/lib/buildd/.,) {
-            tag 'dir-or-file-in-build-tree', $file;
+            unless ($source_pkg eq 'sbuild') {
+                tag 'dir-or-file-in-build-tree', $file;
+            }
         }
         # ---------------- FHS directory?
         elsif (
diff --git a/debian/changelog b/debian/changelog
index 5cca53e..3891556 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ lintian (2.5.18) UNRELEASED; urgency=low
 
   XXX: generate tag summary with private/generate-tag-summary
 
+  * checks/files.pm:
+    + [BR] Fix false-positive dir-or-file-in-build-tree for
+      the sbuild source package.  (Closes: #720910)
   * checks/version-substvars.desc:
     + [NT] Mention that version-substvar-for-external-package
       can happen if the package name used in the relation has

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


Reply to: