Regarding the previous commit: only run that code if a package
has been deselected.