def _outdated_package(package_name): """Faster outdated check when running it for a single package.""" list_command = ListCommand() command_options, _ = list_command.parse_args( ['--pre']) # Include development releases installed_package = _installed_package(package_name) if installed_package: packages = list_command.get_outdated([installed_package], command_options) return packages[0] if packages else None