Subject: vlock: Does not purge dpkg-statoverride
Package: vlock
Version: 2.2.2-3
Severity: important

Hello,

While purging a package, the configuration files are removed. The
dpkg-statoverride should be removed too, so reinstalling a package
ensures that it's configuration is the identical to pristine
installation.

Please find attached an updated vlock.postrm script, that purge those
dpkg-statoverride entries (licensed under GPLv2 or later).

Let me know if there's something wrong in it, that I should change (or
feel free to do it yourself, of course).

Franklin

#!/bin/sh -e

if [ "$1" = "purge" ]; then
        #remove overrides
        for i in /usr/sbin/vlock-main \
                /usr/lib/vlock/modules/new.so \
                /usr/lib/vlock/modules/nosysrq.so \
                /usr/lib/vlock/modules/all.so 
        do
                if dpkg-statoverride --list $i >/dev/null 2>&1; then
                        dpkg-statoverride --remove $i 
                fi
        done
fi

#DEBHELPER#

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to