From bb86bc86724c97846baf555b0e3f7a2a23bc8fea Mon Sep 17 00:00:00 2001 From: "Shih-Yuan Lee (FourDollars)" Date: Mon, 17 Aug 2015 15:19:10 +0200 Subject: [PATCH] Polish the maintainer scripts. --- debian/postinst | 2 ++ debian/preinst | 9 +++++---- debian/prerm | 2 ++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/debian/postinst b/debian/postinst index 6ab14fa..026b12f 100644 --- a/debian/postinst +++ b/debian/postinst @@ -10,3 +10,5 @@ case "$1" in esac #DEBHELPER# + +exit 0 diff --git a/debian/preinst b/debian/preinst index 7d9c403..cb117a0 100644 --- a/debian/preinst +++ b/debian/preinst @@ -2,10 +2,11 @@ set -e -if [ "$1" = upgrade ]; then - - [ -f /usr/bin/startlxqt ] && update-alternatives --remove x-window-manager /usr/bin/startlxqt -fi +case "$1" in + upgrade) + [ -f /usr/bin/startlxqt ] && update-alternatives --remove x-window-manager /usr/bin/startlxqt + ;; +esac #DEBHELPER# diff --git a/debian/prerm b/debian/prerm index 0d3a275..55977eb 100644 --- a/debian/prerm +++ b/debian/prerm @@ -9,3 +9,5 @@ case "$1" in esac #DEBHELPER# + +exit 0