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

2006-04-23 Thread Matthias Klose
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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2006-04-23 Thread Russ Allbery
Matthias Klose [EMAIL PROTECTED] 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 ([EMAIL PROTECTED])   http://www.eyrie.org/~eagle/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]