summaryrefslogtreecommitdiff
path: root/debian/preinst
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-12 02:36:20 -0400
committerJoey Hess <joey@kitenet.net>2010-10-12 02:36:20 -0400
commit739337c857303388ac11d66d15323286393dd981 (patch)
tree66c92f6050772a64ef51bad06363ca490aebf93d /debian/preinst
parent29a3d7f06b2a5a45169445d0c1d2c9326269d652 (diff)
Do not warn about special files or hardlinks if they are ignored by git. Fixes #549354 for git, but not for other VCSs.
Diffstat (limited to 'debian/preinst')
-rw-r--r--debian/preinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/preinst b/debian/preinst
index 11647a1..d7011d9 100644
--- a/debian/preinst
+++ b/debian/preinst
@@ -69,6 +69,11 @@ 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
# delete files the prerm stashes away to handle purging
rm -rf /var/cache/etckeeper/stash