3
0

avoid macros with empty bodies

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=93
This commit is contained in:
Franck Bui 2023-05-11 09:29:22 +00:00 committed by Git OBS Bridge
parent 9fee5b69d2
commit ba6e5f27b2

View File

@ -110,6 +110,7 @@ fi \
#
%service_del_postun_without_restart() \
%{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# service_del_postun_without_restart}} \
: \
%{nil}
# On uninstall, tell systemd to reload its unit files.
@ -181,6 +182,7 @@ fi \
%systemd_user_postun() \
%{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_user_postun}} \
: \
%{nil}
%systemd_user_postun_with_restart() \
@ -196,21 +198,23 @@ fi \
# journal catalog, udev rules, binfmt and sysctl.
#
%udev_hwdb_update() %{nil}
%udev_hwdb_update() :%{nil}
%udev_rules_update() %{nil}
%udev_rules_update() :%{nil}
%journal_catalog_update() %{nil}
%journal_catalog_update() :%{nil}
# Currently the 2 following macros don't have any interesting users. Leave them
# empty until a specific need appears.
%sysctl_apply() \
%{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# sysctl_apply}} \
: \
%{nil}
%binfmt_apply() \
%{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# binfmt_apply}} \
: \
%{nil}
#