Accepting request 1067438 from home:gmbr3:Active

- Move %tmpfiles_create to %post otherwise the file won't exist
  since it is now located in the correct package

OBS-URL: https://build.opensuse.org/request/show/1067438
OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-1?expand=0&rev=333
This commit is contained in:
Simon Lees 2023-02-23 23:38:21 +00:00 committed by Git OBS Bridge
parent b56bd0fa36
commit b54e0829fa
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 23 14:48:12 UTC 2023 - Callum Farmer <gmbr3@opensuse.org>
- Move %tmpfiles_create to %post otherwise the file won't exist
since it is now located in the correct package
-------------------------------------------------------------------
Sun Feb 19 13:57:54 UTC 2023 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -219,7 +219,6 @@ fi
%pre common -f messagebus.pre
%service_add_pre dbus.socket
%tmpfiles_create %{_prefix}/lib/tmpfiles.d/dbus.conf
%post common
if [ -e %{_localstatedir}/lib/dbus/machine-id -a -e %{_sysconfdir}/machine-id ]; then
@ -232,6 +231,7 @@ if [ ! -L %{_localstatedir}/lib/dbus/machine-id ]; then
mkdir -p %{_localstatedir}/lib/dbus/
ln -s %{_sysconfdir}/machine-id %{_localstatedir}/lib/dbus/machine-id
fi
%tmpfiles_create %{_prefix}/lib/tmpfiles.d/dbus.conf
%service_add_post dbus.socket
%preun common