Bug#291026: One more tweak
severity 291026 minor
First of all, thanks for addressing the issue.
Version 184.108.40.206 of policy section 220.127.116.11 contains this code as an
example of how to test for the availability of a utility:
if which invoke-rc.d >/dev/null 2>&1; then
As I mentioned earlier, I think that policy would do a bit better to
follow the example of debhelper and test the executability of the file
reported by which. As discussed before, the which program sometimes
prints filenames that don't have their executable bits set. The
resulting code is not much more complex.
if [ -x "$(which invoke-rc.d 2>/dev/null)" ] ; then
Obviously this is a minor issue, though.
Thomas Hood <email@example.com>