From d9548f9f392d7cffca8903548b868d4c38cfa6f9 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 22 Oct 2025 13:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DEBIAN/control | 2 +- src/etc/apparmor.d/apm | 0 src/usr/bin/apm | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/etc/apparmor.d/apm diff --git a/src/DEBIAN/control b/src/DEBIAN/control index 01c15b3..ee98379 100755 --- a/src/DEBIAN/control +++ b/src/DEBIAN/control @@ -3,7 +3,7 @@ Source: amber-ce Version: 1.0.7.1 Architecture: amd64 Maintainer: shenmo -Installed-Size: 49036 +Installed-Size: 49044 Depends: bubblewrap, flatpak, policykit-1 | pkexec | polkit-1 | polkit, systemd, procps,coreutils,fuse-overlayfs Section: misc Conflicts: ace-host-integration diff --git a/src/etc/apparmor.d/apm b/src/etc/apparmor.d/apm old mode 100644 new mode 100755 diff --git a/src/usr/bin/apm b/src/usr/bin/apm index 7cea672..56291e6 100755 --- a/src/usr/bin/apm +++ b/src/usr/bin/apm @@ -118,6 +118,13 @@ case "$1" in command=$1 shift amber-pm-debug aptss "$command" "$@" + exit_code=$? + if [ $exit_code -eq 0 ]; then + log.info "Operation successful" + else + log.error "Error: Operation failed" + exit $exit_code + fi ;; remove|autoremove|purge|autopurge) @@ -125,6 +132,13 @@ case "$1" in command=$1 shift amber-pm-debug aptss "$command" "$@" + exit_code=$? + if [ $exit_code -eq 0 ]; then + log.info "Operation successful" + else + log.error "Error: Operation failed" + exit $exit_code + fi amber-pm-debug amber-pm-dstore-patch ;; run)