From 3e6e0856cd98dd091137c4565bd5ccefd16ab832 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Sat, 11 Jul 2020 17:13:54 +0300 Subject: [PATCH] rpm: avoid hiding errors and output in *_create_package macros Commit b0ca726585 "rpm: avoid hiding errors from systemd commands" remove hiding errors and output for other macros, but did not do that for %sysusers_create_package and %tmpfiles_create_package. This change syncs their behaviour with %sysusers_create and %tmpfiles_create Signed-off-by: Mikhail Novosyolov --- src/core/macros.systemd.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in index e5c41f68e4d..80827b6ea48 100644 --- a/src/core/macros.systemd.in +++ b/src/core/macros.systemd.in @@ -122,7 +122,7 @@ SYSTEMD_INLINE_EOF\ # %{_sysusersdir}/%{name}.conf %sysusers_create_package() \ %{expand:%%{?!__systemd_twoargs_%#:%%{error:This macro requires two arguments}}} \ -systemd-sysusers --replace=%_sysusersdir/%1.conf - </dev/null 2>&1 || : \ +systemd-sysusers --replace=%_sysusersdir/%1.conf - </dev/null 2>&1 || : \ +systemd-tmpfiles --replace=%_tmpfilesdir/%1.conf --create - <