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.
install_mirror_package function for Ubuntu/Debian: fetch package from a different release.
Move package removal/cleanup before user creation.
install_mirror_package: Improve HTML parsing
install_mirror_package: Detect mirror from sources.list.
Merge branch 'install_newer_package' of git://github.com/drinkcat/chroagh
Merge branch 'improve-package-removal' of git://github.com/drinkcat/chroagh

Conflicts:
	targets/post-common
Remove old xdotool dependency.
Only update sources.list during the first installation, or when `-u -u` is specified.
Fixes after review.
Merge branch 'croagh+mirrorset' of git://github.com/drinkcat/chroagh
Rewording in MIRROR help text.
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.
 - Remove pulseaudio if possible, then prevent it from being installed.
Avoid redundant slashes in install_mirror_package
Fixes after review. Better pattern matching.