[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#684437: unblock: fpc/2.6.0-6



Philipp Kern wrote:
Uhm, is it really required by policy to delete backup files that weren't
created by the package in the first place?

diff -Nru fpc-2.6.0/debian/fp-compiler.postrm.in fpc-2.6.0/debian/fp-compiler.postrm.in
--- fpc-2.6.0/debian/fp-compiler.postrm.in      2012-05-06 21:43:32.000000000 +0000
+++ fpc-2.6.0/debian/fp-compiler.postrm.in      2012-08-09 22:55:10.000000000 +0000
@@ -4,12 +4,14 @@
ACTION=$1 -CFG_FILE="/etc/fpc-${VERSION}.cfg"
+CFG_FILE="/etc/fpc-${VERSION}"
# Debhelper code
 #DEBHELPER#
if test "${ACTION}" = "purge"
 then
-       rm -f ${CFG_FILE}
+       rm -f  "${CFG_FILE}".cfg
+       rm -f  "${CFG_FILE}".bak
+       rm -f  "${CFG_FILE}".*dpkg*
 fi

The second part does not make me happy.
The .bak file is created by the package under some circumstances
(certain upgrade scenarios I believe).

I don't understand why abou put in the .*dpkg* line though. ccing
him to ask.


Reply to: