Fix xargs call when there is nothing to be done

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/avahi?expand=0&rev=171
This commit is contained in:
Dominique Leuenberger 2020-07-28 13:35:36 +00:00 committed by Git OBS Bridge
parent 2f2388ff77
commit ae6c49bdd7

View File

@ -645,7 +645,7 @@ getent passwd avahi-autoipd >/dev/null || \
%post autoipd %post autoipd
%{fillup_only -ns avahi autoipd} %{fillup_only -ns avahi autoipd}
# Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11.
find %{_localstatedir}/lib/avahi-autoipd -user avahi |xargs chown avahi-autoipd:avahi-autoipd find %{_localstatedir}/lib/avahi-autoipd -user avahi |xargs -r chown avahi-autoipd:avahi-autoipd
%post -n libavahi-client3 -p /sbin/ldconfig %post -n libavahi-client3 -p /sbin/ldconfig
%postun -n libavahi-client3 -p /sbin/ldconfig %postun -n libavahi-client3 -p /sbin/ldconfig