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

Bug#839263: lintian: enable wrong-section-according-to-package-name checks for R packages from Bioconductor



Package: lintian
Version: 2.5.47
Severity: wishlist
Tags: patch


Hi,
Please find attached a very simple patch which add the check of the
section (gnu-r) for R package from the Bioconductor repository.

Best,
Dylan
From 7154de33bd463801e5b32cba5d12bb62e6ed5323 Mon Sep 17 00:00:00 2001
From: Dylan Aïssi <bob.dybian@gmail.com>
Date: Fri, 30 Sep 2016 09:06:26 +0000
Subject: [PATCH] r-bioc-* packages should be in gnu-r section

---
 checks/fields.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/fields.pm b/checks/fields.pm
index 328f0f9..edb21b3 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -99,7 +99,7 @@ my @NAME_SECTION_MAPPINGS = (
     [qr/-dbg(?:sym)?$/                => 'debug'],
     [qr/^(?:python-)?zope/            => 'zope'],
     [qr/^python-/                     => 'python'],
-    [qr/^r-cran-/                     => 'gnu-r'],
+    [qr/^r-(?:cran|bioc)-/            => 'gnu-r'],
     [qr/^lib.*-perl$/                 => 'perl'],
     [qr/^lib.*-cil(?:-dev)?$/         => 'cli-mono'],
     [qr/^lib.*-(?:java|gcj)$/         => 'java'],
-- 
2.1.4


Reply to: