media-sound/pulseaudio: HDMI sound can get lost if people doesn't reboot because we need to run udevadm control --reload when updating (http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/6.0/)

Package-Manager: portage-2.2.20.1
This commit is contained in:
Pacho Ramos
2015-09-10 22:51:35 +02:00
parent 4e27a10945
commit f47585cb5b
@@ -379,4 +379,11 @@ pkg_postinst() {
elog "The libsamplerate based resamplers are now deprecated, because they offer no"
elog "particular advantage over speex. Upstream suggests disabling them."
fi
# Needed for pulseaudio-6.0 update from older versions
if use udev; then
if ! version_is_at_least 6.0 ${REPLACING_VERSIONS}; then
udevadm control --reload && udevadm trigger
fi
fi
}