def _get_pkg_id_from_pkginfo(pkginfo):
    # Find our identifiers
    pkginfo = _quote(pkginfo)
    cmd = 'cat {0} | grep -Eo \'identifier="[a-zA-Z.0-9\\-]*"\' | cut -c 13- | tr -d \'"\''.format(pkginfo)
    out = __salt__['cmd.run'](cmd, python_shell=True)

    if out not in 'No such file':
        return out.split('\n')

    return []
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_package.py/_get_pkg_id_from_pkginfo/swapped operands of `not in`