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

Bug#920568: lintian: false positive command-with-path-in-maintainer-script in debhelper generated code



Package: lintian
Version: 2.5.124
Severity: normal

Hi,

I get false positives for command-with-path-in-maintainer-script in my
glx-alternatives package:

W: glx-alternative-nvidia: command-with-path-in-maintainer-script postinst:214 /usr/sbin/update-initramfs
W: glx-alternative-nvidia: command-with-path-in-maintainer-script postrm:11 /usr/sbin/update-initramfs


postinst:
#!/bin/sh
set -e
[...]
# Automatically added by dh_installinitramfs/12
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
        if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]; then
                update-initramfs -u
        fi
fi
# End automatically added section
[...]

postrm:
#!/bin/sh
set -e
[...]
# Automatically added by dh_installinitramfs/12
if [ "$1" = "remove" ]; then
        if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]; then
                update-initramfs -u
        fi
fi
# End automatically added section


Andreas


Reply to: