Bug#663447: lintian: False positive: executable-debhelper-file-without-being-executable
Package: lintian
Version: 2.5.5
Severity: normal
Tags: patch
Lintian emits the executable-debhelper-file-without-being-executable tag for directories.
For example sdl-image1.2 has a directory called debian/examples.
Attaching a patch that adds a check so the tag is only emitted for real files.
--- lintian-HEAD-a498e42.org/checks/debhelper
+++ lintian-HEAD-a498e42/checks/debhelper
@@ -344,7 +344,7 @@
# debhelper only use executable files in compat 9
_tag_if_executable ($file, "$droot/$file");
} else {
- if (-x "$droot/$file") {
+ if (-f "$droot/$file" && -x "$droot/$file") {
my $cmd = _shebang_cmd ("debian/$file", "$droot/$file");
unless ( $cmd ) {
tag 'executable-debhelper-file-without-being-executable', "debian/$file";
Reply to: