%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/layman.pyo

�
���^c@@s�dZddlmZmZmZddlZddlZd�Zd�Z	d�Z
d�Zdd	�Zd
�Z
d�ZdS(u
Support for Layman
i(tabsolute_importtprint_functiontunicode_literalsNcC@s3tddkr)tjjjd�r)dStdfS(u;
    Only work on Gentoo systems with layman installed
    uosuGentooulaymanuYlayman execution module cannot be loaded: only available on Gentoo with layman installed.(t
__grains__tsalttutilstpathtwhichtFalse(((s7/usr/lib/python2.7/site-packages/salt/modules/layman.pyt__virtual__s%cC@s8d}d}td|�r |Std|�r4|SdS(u�
    Find the correct make.conf. Gentoo recently moved the make.conf
    but still supports the old location, using the old location first
    u/etc/make.confu/etc/portage/make.confufile.file_existsN(t__salt__(told_conftnew_conf((s7/usr/lib/python2.7/site-packages/salt/modules/layman.pyt
_get_makeconfscC@s�t�}t�}dj|�}td|dtdd�}|ddkrftjj|d��nt�}t|�dkr�t|�dkr�d	}t	�}td
|d�s�td||�q�ng|D]}||kr�|^q�}|S(
u'
    Add the given overlay from the cached remote list to your locally
    installed overlays. Specify 'ALL' to add all overlays from the
    remote list.

    Return a list of the new overlay(s) added:

    CLI Example:

    .. code-block:: bash

        salt '*' layman.add <overlay name>
    ulayman --quietness=0 --add {0}ucmd.run_alltpython_shelltstdinuyuretcodeiustdoutu source /var/lib/layman/make.confu
file.containsulaymanufile.append(
tlistt
list_localtformatR
RRt
exceptionstCommandExecutionErrortlenR
(toverlaytrettold_overlaystcmdtadd_attempttnew_overlaystsrclinetmakeconf((s7/usr/lib/python2.7/site-packages/salt/modules/layman.pytadd!s			$	%cC@s�t�}t�}dj|�}td|dt�}|ddkr`tjj|d��nt�}t|�dkr�d}t	�}td|d	�r�td
||d�q�ng|D]}||kr�|^q�}|S(u

    Remove the given overlay from the your locally installed overlays.
    Specify 'ALL' to remove all overlays.

    Return a list of the overlays(s) that were removed:

    CLI Example:

    .. code-block:: bash

        salt '*' layman.delete <overlay name>
    u!layman --quietness=0 --delete {0}ucmd.run_allRuretcodeiustdoutu source /var/lib/layman/make.confu
file.containsulaymanufile.sedu(
RRRR
RRRRRR
(RRRRtdelete_attemptRRR((s7/usr/lib/python2.7/site-packages/salt/modules/layman.pytdeleteDs
				%uALLcC@s)dj|�}td|dt�dkS(u
    Update the specified overlay. Use 'ALL' to synchronize all overlays.
    This is the default if no overlay is specified.

    overlay
        Name of the overlay to sync. (Defaults to 'ALL')

    CLI Example:

    .. code-block:: bash

        salt '*' layman.sync
    ulayman --quietness=0 --sync {0}ucmd.retcodeRi(RR
R(RR((s7/usr/lib/python2.7/site-packages/salt/modules/layman.pytsyncescC@sdd}td|dt�jd�}g|D].}t|j��dkr,|j�d^q,}|S(u�
    List the locally installed overlays.

    Return a list of installed overlays:

    CLI Example:

    .. code-block:: bash

        salt '*' layman.list_local
    u+layman --quietness=1 --list-local --nocolorucmd.runRu
ii(R
RtsplitR(RtouttlineR((s7/usr/lib/python2.7/site-packages/salt/modules/layman.pyRws;cC@sdd}td|dt�jd�}g|D].}t|j��dkr,|j�d^q,}|S(u�
    List all overlays, including remote ones.

    Return a list of available overlays:

    CLI Example:

    .. code-block:: bash

        salt '*' layman.list_all
    u%layman --quietness=1 --list --nocolorucmd.runRu
ii(R
RR"R(RR#R$R((s7/usr/lib/python2.7/site-packages/salt/modules/layman.pytlist_all�s;(t__doc__t
__future__RRRtsalt.utils.pathRtsalt.exceptionsR	R
RR R!RR%(((s7/usr/lib/python2.7/site-packages/salt/modules/layman.pyt<module>s			
	#	!	

Zerion Mini Shell 1.0