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

Bug#709886: Fix false positive under debian/changelog for gfdl



Package: lintian
Version: 2.5.12
Severity: minor	
tags: patch

debian/changelog has no need to be scanned for license problem.

Bastien
From ff959690b305db8cf08260f892df1ef5929d4509 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Sun, 26 May 2013 13:09:45 +0200
Subject: [PATCH] Do not warm for license string in debian changelog

If they are some bad license in this file it is for documentation purpose of changelog
---
 checks/cruft |    1 +
 1 file changed, 1 insertion(+)

diff --git a/checks/cruft b/checks/cruft
index 8cef84b..f25dcf3 100644
--- a/checks/cruft
+++ b/checks/cruft
@@ -445,6 +445,7 @@ sub find_cruft {
     }
 
     return if $info->is_non_free; # (license issue does not apply to non-free)
+    return if $basename eq 'debian/changelog'; # (license string in debian/changelog are changelog)
 
     # test license problem is source file (only text file)
     if (-T $basename) {
-- 
1.7.10.4


Reply to: