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

The "script-with-language-extension" check currently checks for files like
'/usr/bin/myscript.sh', in accordance with ยง10.4.

It would be nice if it detected other languages such as PHP and Ruby, etc. A
rudimentary search with apt-file shows there are a number of offending
packages in the archive.

A patch is attached. (I did not augment the existing testcase because it does
not currently exhaust all the language options and would almost be a test of
Perl's regex capabilities)


Regards,

-- 
Chris Lamb, UK                                       [EMAIL PROTECTED]
                                                            GPG: 0x634F9A20
Index: checks/files
===================================================================
--- checks/files        (revision 1122)
+++ checks/files        (working copy)
@@ -582,7 +582,7 @@
        }
 
        # ---------------- executables with language extensions
-       if ($file =~ m,^(usr/)?(s?bin|games)/[^/]+\.(pl|sh|py)$,) {
+       if ($file =~ 
m,^(usr/)?(s?bin|games)/[^/]+\.(pl|sh|py|php|rb|tcl|bsh|csh|tcl)$,) {
            tag "script-with-language-extension", "$file";
        }
 

Attachment: signature.asc
Description: PGP signature

Reply via email to