%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/winrepo.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZddlZddlZ	ddl
Z	ddlZ	ddlZ	d�Z
eed�ZdS(u#
Manage Windows Package Repository
i(tabsolute_importtunicode_literalstprint_functionNcC@sdS(Nuwinrepo((((s7/usr/lib/python2.7/site-packages/salt/states/winrepo.pyt__virtual__scC@s8i|d6td6id6dd6}tjjtjjtjjd��}|d}|d}tjj||�}t	}|s�tjj
|�s�t	|d<d	j|�|d<|Stjj
|�s�t}d	j|�|d<q�tj|�tj
}x�tjjj|�D]}\}	}
}xktj||
�D]W}tjj|	|�}tj|�tj
|kr-d
j||�|d<t}Pq-q-WqWntdr�d|d<|S|r�|r�|Stjj|�}
|
jdg�}i|d
6|d<t|t�r4|ikr4|r4tj|�t	|d<d|d<n|S(u�
    Refresh the winrepo.p file of the repository (salt-run winrepo.genrepo)

    If ``force`` is ``True`` no checks will be made and the repository will be
    generated if ``allow_empty`` is ``True`` then the state will not return an
    error if there are 0 packages,

    .. note::

        This state only loads on minions that have the ``roles: salt-master``
        grain set.

    Example:

    .. code-block:: yaml

        winrepo:
          winrepo.genrepo
    unameuresultuchangesuucommentumasteruwinrepo_diruwinrepo_cachefileu{0} is missingumtime({0}) < mtime({1})utestuwinrepo.genrepouwinrepouwinrepo.genrepo returned emptyN(tTruetsalttconfigt
master_configtostpathtjointsyspathst
CONFIG_DIRtFalsetexiststformattstattST_MTIMEtutilstos_walkt	itertoolstchaint__opts__tNonetrunnertRunnerClienttcmdt
isinstancetdicttremove(tnametforcetallow_emptytretRtwinrepo_dirtwinrepo_cachefiletexecutetwinrepo_cachefile_mtimetroottdirstfilest	full_pathRt
runner_ret((s7/usr/lib/python2.7/site-packages/salt/states/winrepo.pytgenreposN

	


%

"


(t__doc__t
__future__RRRRRRtsalt.runnerRtsalt.configt
salt.syspathstsalt.utils.pathRR
R+(((s7/usr/lib/python2.7/site-packages/salt/states/winrepo.pyt<module>s	

Zerion Mini Shell 1.0