File: mercurial-common.postinst

package info (click to toggle)
mercurial 7.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,824 kB
  • sloc: python: 206,444; ansic: 56,415; tcl: 3,715; sh: 1,797; lisp: 1,483; cpp: 864; makefile: 752; javascript: 649; xml: 36
file content (13 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = configure ]; then
	if dpkg --compare-versions "$2" lt-nl 4.7.2-1~; then
		if [ -f "/etc/mercurial/hgrc.d/mergetools.rc.dpkg-bak" ]; then
			mv /etc/mercurial/hgrc.d/mergetools.rc.dpkg-bak /etc/mercurial/hgrc.d/mergetools.rc
		fi
	fi
fi