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:32:47 +0000 (14:32 -0800)
commitf01efe0b52da69019ce18223d4dc0fe6bdf44b1a
tree8aed8719bea3d56c8d0272a2257bb5ccb79272ce
parent50d63168f50d4d0e8007cb1c81112ea3c7e1d111
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