Fix for uninstalling repositories in an ordered fashion.