Accepting request 879820 from home:tiwai:branches:multimedia:libs

- Fix superfluous asound.state migration (bsc#1183672)

OBS-URL: https://build.opensuse.org/request/show/879820
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=190
This commit is contained in:
Takashi Iwai 2021-03-18 07:59:26 +00:00 committed by Git OBS Bridge
parent f936d7ca95
commit 9d0f007087
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 18 08:40:22 CET 2021 - tiwai@suse.de
- Fix superfluous asound.state migration (bsc#1183672)
-------------------------------------------------------------------
Thu Jan 21 10:21:14 CET 2021 - tiwai@suse.de

View File

@ -163,9 +163,10 @@ install -c -m 0755 %{SOURCE5} %{buildroot}%{_prefix}/lib/systemd/scripts
%post
%service_add_post sound-extra.service
# migrate the old asound.state
test -f %{_localstatedir}/lib/alsa/asound.state || \
if [ ! -f %{_localstatedir}/lib/alsa/asound.state ]; then
test -f /etc/asound.state && \
cp -a /etc/asound.state %{_localstatedir}/lib/alsa/asound.state
fi
exit 0
%preun