def _fulfills_version_spec(versions, oper, desired_version,
                           ignore_epoch=False):
    normalize = lambda x: x.split(':', 1)[-1] if ignore_epoch else x
    cmp_func = __salt__.get('pkg.version_cmp')
    for ver in versions:
        if salt.utils.compare_versions(ver1=normalize(ver),
                                       oper=oper,
                                       ver2=normalize(desired_version),
                                       cmp_func=cmp_func):
            return True
    return False
Returns True if any of the installed versions match the specified version,
dataset/ETHPy150Open saltstack/salt/salt/states/pkg.py/_fulfills_version_spec