summaryrefslogtreecommitdiff
path: root/debian/preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/preinst')
-rw-r--r--debian/preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/preinst b/debian/preinst
index b4495fe..a510cef 100644
--- a/debian/preinst
+++ b/debian/preinst
@@ -69,4 +69,17 @@ install|upgrade)
rm_conffile etckeeper "/etc/etckeeper/commit.d/$c"
done
fi
+ if dpkg --compare-versions "$2" le "0.50"; then
+ for c in 20warn-hardlinks 20warn-special-file; do
+ rm_conffile etckeeper "/etc/etckeeper/pre-commit.d/$c"
+ done
+ fi
+ if dpkg --compare-versions "$2" le "0.58"; then
+ for c in commit.d/40git-rm; do
+ rm_conffile etckeeper "/etc/etckeeper/pre-commit.d/$c"
+ done
+ fi
+
+ # delete files the prerm stashes away to handle purging
+ rm -rf /var/cache/etckeeper/stash
esac