Comment 20 for bug 986892

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I have verified that Clint's changes work-- eg I adjusted /var/lib/dpkg/info/tcpdump.postrm to have (ie, what dh_apparmor would add when tcpdump is built with new apparmor):
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.sbin.tcpdump" ]; then

and then I did:
$ sudo apt-get remove tcpdump # /etc/apparmor.d/local/usr.sbin.tcpdump still exists
$ sudo apt-get remove --purge tcpdump # /etc/apparmor.d/local/usr.sbin.tcpdump no longer exists

I will commit this to our bzr branch. Thanks Clint! :)