summaryrefslogtreecommitdiffstats
path: root/debian/git.postinst
blob: 1d9d492541737e464aecda5bceeca9882f4bb92c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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