From 6e9976c7e64a3bbb0cddd678ab51cfad34b7124d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=88=90=E5=88=9A?= Date: Mon, 27 May 2024 10:57:29 +0800 Subject: [PATCH] feat: Add exit mechanism if linglong package installation fails --- debian/changelog | 6 ++++++ debian/deepin-desktop-environment-ll.postinst | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index e53f11e..ea7e046 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-desktop-environment (2024.05.27) unstable; urgency=medium + + * update ll-cli filed exit. + + -- LiChengGang Mon, 27 May 2024 10:55:55 +0800 + deepin-desktop-environment (2024.05.23) unstable; urgency=medium * add fcitx5-pinyin-gui intel-media-driver-non-free. diff --git a/debian/deepin-desktop-environment-ll.postinst b/debian/deepin-desktop-environment-ll.postinst index c6a4d57..f4fddee 100644 --- a/debian/deepin-desktop-environment-ll.postinst +++ b/debian/deepin-desktop-environment-ll.postinst @@ -13,6 +13,10 @@ install_pkg(){ for pkg in `cat $1 | grep -v "^#"` do ll-cli --no-dbus install ${pkg} + if [ $? -ne 0 ]; then + echo "Command failed. Exiting." + exit 1 + fi done }