Fixed issues where installed packages were ignored, and where only the newest packages would be returned if there were multiple versions in the repository.