diff --git a/alsa-utils.changes b/alsa-utils.changes index 2724328..a9ec977 100644 --- a/alsa-utils.changes +++ b/alsa-utils.changes @@ -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 diff --git a/alsa-utils.spec b/alsa-utils.spec index 49e59d3..66af5d4 100644 --- a/alsa-utils.spec +++ b/alsa-utils.spec @@ -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