From 78f6d46abfd10701a09656d432ae3d49eacb8e16b0b29ec3ab68ce0b251c6f4c Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Wed, 16 Feb 2022 13:57:06 +0000 Subject: [PATCH 1/2] Accepting request 955375 from home:MargueriteSu:branches:M17N - fix preun scirpt OBS-URL: https://build.opensuse.org/request/show/955375 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx5?expand=0&rev=25 --- fcitx5.changes | 5 +++++ fcitx5.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fcitx5.changes b/fcitx5.changes index b1cf5cb..767822d 100644 --- a/fcitx5.changes +++ b/fcitx5.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 16 13:56:19 UTC 2022 - Marguerite Su + +- fix preun scirpt + ------------------------------------------------------------------- Sat Feb 12 02:13:30 UTC 2022 - Marguerite Su diff --git a/fcitx5.spec b/fcitx5.spec index f813974..7b35ffc 100644 --- a/fcitx5.spec +++ b/fcitx5.spec @@ -220,8 +220,8 @@ if [ -x /usr/bin/systemctl ]; then fi %preun -if [ %{name}.service -eq 0 -a -x /usr/bin/systemctl ]; then - /usr/bin/systemctl --global disable fcitx5.service || : +if [ $1 -eq 0 -a -x /usr/bin/systemctl ]; then + /usr/bin/systemctl --global disable %{?*} || : fi %endif From 34d14f92afde4b2c63830d88202ee420bc201897613cc7b6d91854f08694f6ae Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Wed, 16 Feb 2022 15:41:43 +0000 Subject: [PATCH 2/2] Accepting request 955405 from home:MargueriteSu:branches:M17N fix error OBS-URL: https://build.opensuse.org/request/show/955405 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx5?expand=0&rev=26 --- fcitx5.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcitx5.spec b/fcitx5.spec index 7b35ffc..3e296e9 100644 --- a/fcitx5.spec +++ b/fcitx5.spec @@ -221,7 +221,7 @@ fi %preun if [ $1 -eq 0 -a -x /usr/bin/systemctl ]; then - /usr/bin/systemctl --global disable %{?*} || : + /usr/bin/systemctl --global disable %{name}.service || : fi %endif