install_mirror_package function for Ubuntu/Debian: fetch package from a different release.
Add audio support in chroot, by forwarding audio to cras (Chromium OS audio server).
 - Bind mount /var/run/cras
 - Compile and install cras ALSA plugin, and set it up as default device.
Improved audio target.
Start detect pulseaudio
Properly check if a package is installed or not.
dpkg-query -s <pkg> returns 0 even when status is "deinstall ok config-files".
Instead, check if the full "Status" string starts with either "install" or "hold".
Replace virtual package names by actual ones.
Remove package with remove instead of autoremove. Run autoremove at the end of post-common.
autoremove is not supposed to take parameters in the first place, and fails to remove uneeded dependencies of the specified packages when --purge is set.
Leverage on autoremove to remove packages that are only needed for building.
This makes the installation faster as we do not need to constantly install/uninstall packages.
Use dpkg-query -l instead of dpkg-query -W.
Fixes after review.
Try to automatically remove pulseaudio.
Merge branch 'install_newer_package' into audio.tmp
Audio cleanups