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

Bug#364521: patch files are tagged as shell-script-fails-syntax-check



Matthias Klose <doko@cs.tu-berlin.de> writes:

> Package: lintian

> E: gcc-4.1-source: shell-script-fails-syntax-check ./usr/src/gcc-4.1/patches/ppc64-ada.dpatch
> E: gcc-4.1-source: shell-script-fails-syntax-check ./usr/src/gcc-4.1/patches/gccbug.dpatch

> not sure, if I should mark them with an overrides file or if that
> could be fixed in lintian

Ah, I see, bash -n doesn't stop checking at "exit 0".  Which makes sense;
the exit could be conditional and the flow control understanding required
to establish that it's not is probably hard to do.

I think the right solution may be for lintian to ignore shell scripts with
a suffix of .dpatch in /usr/src.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: