From 5f8e0f8ef9a422691dd72e8a953a42a41478fcb4 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Wed, 4 May 2011 16:18:09 +0900 Subject: Releasing debian version 0.5.1-1 --- debian/preinst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 debian/preinst (limited to 'debian/preinst') diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 0000000..274d592 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,21 @@ +#!/bin/sh -e + +case "$1" in + install|upgrade) + # Older versions of this package had the conffile in the wrong + # location (the w3m binary didn't use it). Copy it if its there, + # so any customisation done there can be preserved. We actually + # get rid of the wrong file in our postinst. + if dpkg --compare-versions "$2" lt-nl "0.4.2-1.1"; then + if test -e /etc/w3m/w3mconfig; then + if ! test -e /etc/w3m/config; then + cp -a /etc/w3m/w3mconfig /etc/w3m/config + fi + fi + fi + ;; + *) +esac + +#DEBHELPER# + -- cgit v1.2.3