diff options
Diffstat (limited to 'debian/git.postinst')
-rw-r--r-- | debian/git.postinst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/git.postinst b/debian/git.postinst new file mode 100644 index 0000000..1d9d492 --- /dev/null +++ b/debian/git.postinst @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +test "$1" = configure || exit 0 + +removed_conffile=/etc/emacs/site-start.d/50git-core.el + +# Carry over modifications so git-el can use them. +if dpkg --compare-versions "$2" lt '1:1.7.4.1-2~' && + ! test -e "$removed_conffile" && + test -r "$removed_conffile".dpkg-bak; then + mv "$removed_conffile".dpkg-bak "$removed_conffile" +fi |