def upgrade_available(pkg,
                      bin_env=None,
                      user=None,
                      cwd=None):
    return pkg in list_upgrades(bin_env=bin_env, user=user, cwd=cwd)
.. versionadded:: 2015.5.0
dataset/ETHPy150Open saltstack/salt/salt/modules/pip.py/upgrade_available