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:34:42 +0000 (14:34 -0800)
commit03b845d81c0b463050516196a4092819a463ee7a
treed47aa661538743f23ae31b428db60c510a2af3d4
parent81548e6b556a30314b1208eecab914da26f4f7d8
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