From 8f3310e6398def7f8e1a779c3a9737f9b3dcc393 Mon Sep 17 00:00:00 2001 From: Julien Lavergne Date: Tue, 9 Nov 2010 22:52:59 +0100 Subject: [PATCH] * debian/postinst: - Don't fail if the alternative file doesn't exist. (LP: #654211) --- debian/changelog | 7 +++++++ debian/postinst | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 76bdb7f..690d52d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,13 @@ lubuntu-default-settings (0.13) natty; urgency=low -- Julien Lavergne Tue, 09 Nov 2010 20:47:03 +0100 +lubuntu-default-settings (0.13) maverick; urgency=low + + * debian/postinst: + - Don't fail if the alternative file doesn't exist. (LP: #654211) + + -- Julien Lavergne Mon, 04 Oct 2010 23:16:56 +0200 + lubuntu-default-settings (0.12) maverick; urgency=low * debian/postinst: diff --git a/debian/postinst b/debian/postinst index b89a8ed..b9468af 100644 --- a/debian/postinst +++ b/debian/postinst @@ -4,8 +4,10 @@ set -e # Remove alternative file if it's not a symlink, workaround for broken upgrade # See bug #625485 -if [ ! -h "/etc/alternatives/lxdm.conf" ] ; then - rm "/etc/alternatives/lxdm.conf" +if [ -f /etc/alternatives/lxdm.conf ] ; then + if [ ! -h "/etc/alternatives/lxdm.conf" ] ; then + rm -f "/etc/alternatives/lxdm.conf" + fi fi if [ "$1" = configure ]; then