def install(pkg, target='LocalSystem', store=False, allow_untrusted=False):
    '''
    Install a pkg file

    CLI Example:

    .. code-block:: bash

        salt '*' macpackage.install test.pkg

    target
        The target in which to install the package to

    store
        Should the package be installed as if it was from the store?

    allow_untrusted
        Allow the installation of untrusted packages?


    '''
    pkg = _quote(pkg)
    target = _quote(target)

    cmd = 'installer -pkg {0} -target {1}'.format(pkg, target)
    if store:
        cmd += ' -store'
    if allow_untrusted:
        cmd += ' -allowUntrusted'

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

    return __salt__['cmd.run_all'](cmd, python_shell=python_shell)
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_package.py/install/swapped operands of `in`