HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/mercurial-common.postinst
#!/bin/sh

set -e


# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
	py3compile -p mercurial-common 
fi
if command -v pypy3compile >/dev/null 2>&1; then
	pypy3compile -p mercurial-common  || true
fi

# End automatically added section
# Automatically added by dh_installdeb/13.6ubuntu1
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/mercurial 3.5.1-2\~ mercurial-common -- "$@"
dpkg-maintscript-helper rm_conffile /etc/mercurial/hgrc.d/mergetools.rc 4.7.2-1\~ mercurial-common -- "$@"
# End automatically added section


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