debian: Delete log files correctly when packages are purged.
authorBen Pfaff <blp@nicira.com>
Thu, 19 Jan 2012 18:07:38 +0000 (10:07 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 24 Jan 2012 22:33:55 +0000 (14:33 -0800)
commit1971688ba86a2e401c9a4fe80df6011640c73a69
treed431c45b7d29c5309c0e193c2de09f55e8920c3e
parent1820db11c2e9160bd95dd1ff9376813836e57cab
debian: Delete log files correctly when packages are purged.

Debian Policy 10.8 says "Log files should be removed when the package is
purged (but not when it is only removed)," but the Open vSwitch packages
didn't properly implement this:

   - The openvswitch-brcompat and openvswitch-pki packages didn't delete
     their log files at purge time.

   - The openvswitch-switch package deleted all of the log files at purge
     time, even those owned by openvswitch-brcompat or openvswitch-pki.

This commit fixes both problems.

CC: 656448@bugs.debian.org
Reported-by: Andreas Beckmann <debian@abeckmann.de>
Signed-off-by: Ben Pfaff <blp@nicira.com>
debian/automake.mk
debian/openvswitch-brcompat.postrm [new file with mode: 0755]
debian/openvswitch-pki.postrm [new file with mode: 0755]
debian/openvswitch-switch.postrm