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

[lintian] 01/02: L::CScripts: Remove fallback for .pm-less checks



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

nthykier pushed a commit to branch master
in repository lintian.

commit fe17348ddbb3a89cfea33732388dbe3d4429136c
Author: Niels Thykier <niels@thykier.net>
Date:   Fri Dec 30 20:28:09 2016 +0000

    L::CScripts: Remove fallback for .pm-less checks
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 debian/changelog           |  3 +++
 lib/Lintian/CheckScript.pm | 13 -------------
 2 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ee32882..de4b609 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,9 @@ lintian (2.5.51) UNRELEASED; urgency=medium
     + [BR] Do not report duplicates for package-installs-apt-preferences
       and package-installs-apt-sources.  (Closes: #814521).
 
+  * lib/Lintian/CheckScript.pm:
+    + [NT] Remove fallback code for "old" style "pm"-less checks.
+
  -- Bastien Roucariès <roucaries.bastien+debian@gmail.com>  Fri, 30 Dec 2016 17:14:54 +0100
 
 lintian (2.5.50) unstable; urgency=medium
diff --git a/lib/Lintian/CheckScript.pm b/lib/Lintian/CheckScript.pm
index d0d04e6..094e54a 100644
--- a/lib/Lintian/CheckScript.pm
+++ b/lib/Lintian/CheckScript.pm
@@ -209,19 +209,6 @@ sub load_check {
     my $cs_pkg = $self->{'script_pkg'};
     my $run;
 
-    if (!-f $cs_path) {
-        # Try the "old" extensionless path (i.e. strip ".pm")
-        # - This can go away in 2.5.15 or later
-        my $alt_path = substr($cs_path, 0, -3);
-        if (-f $alt_path) {
-            my $name = $self->name;
-            warnings::warnif('deprecated',
-                "[deprecated] Check module for $name missing \".pm\" extension"
-                  . " (should be: $cs_path)");
-            $self->{'script_path'} = $cs_path = $alt_path;
-        }
-    }
-
     require $cs_path;
 
     {

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


Reply to: