Bug#291026: One more tweak
severity 291026 minor
First of all, thanks for addressing the issue.
Version 22.214.171.124 of policy section 126.96.36.199 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 <firstname.lastname@example.org>