def _get_pkg_id_dir(path):
    path = _quote(os.path.join(path, 'Contents/Info.plist'))
    cmd = '/usr/libexec/PlistBuddy -c "print :CFBundleIdentifier" {0}'.format(path)

    # We can only use wildcards in python_shell which is
    # sent by the macpackage state
    python_shell = False
    if '*.' in cmd:
        python_shell = True

    out = __salt__['cmd.run'](cmd, python_shell=python_shell)

    if out not in 'Does Not Exist':
        return [out]

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