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:31:30 +0000 (14:31 -0800)
commite8b95166d0915374f3a1a1ba96955ed3d881871b
tree703a9ee5d1ffbe447cf2745f21da1d21703e9206
parent1650ab62daacfd8cbfde65ff17598de2d45d9f3c
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