From bbf26d8f0d27c758c422ae7ac6f9b743ef6e0b11 Mon Sep 17 00:00:00 2001 From: Anatoly Borodin Date: Wed, 22 Aug 2018 15:02:14 +0200 Subject: [PATCH] Sync plymouth-theme-kubuntu-text.install with plymouth-theme-ubuntu-text.install --- debian/plymouth-theme-kubuntu-text.postinst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git debian/plymouth-theme-kubuntu-text.postinst debian/plymouth-theme-kubuntu-text.postinst index da059d5dcb8a..eb6266e15e78 100644 --- debian/plymouth-theme-kubuntu-text.postinst +++ debian/plymouth-theme-kubuntu-text.postinst @@ -12,14 +12,16 @@ error() case "$1" in configure|triggered) - # We remove leftover generated file from previous plymouth version. Can be removed on xenial+1 - if dpkg --compare-versions "$2" le-nl "1:16.04ubuntu1~"; then - rm -f /lib/plymouth/themes/kubuntu-text/kubuntu-text.plymouth + if [ "$1" = "configure" ]; then + # We remove leftover generated file from previous plymouth version. Can be removed on xenial+1 + if dpkg --compare-versions "$2" le-nl "1:16.04ubuntu1~"; then + rm -f /lib/plymouth/themes/kubuntu-text/kubuntu-text.plymouth + fi fi # we keep that rmdir unconditional as we want to ensure that the dir is # removed at some point (alternatives on other theme package removing # default links may happens later) - rmdir -p --ignore-fail-on-non-empty /lib/plymouth/ || true + rmdir -p --ignore-fail-on-non-empty /lib/plymouth/ 2>/dev/null || true sed -re \ "/\[ubuntu-text\]/ { -- 2.17.1