%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/winrepo.pyo |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l
Z d d l Z d d l Z d � Z
e e d � Z d S( u#
Manage Windows Package Repository
i ( t absolute_importt unicode_literalst print_functionNc C@ s d S( Nu winrepo( ( ( ( s7 /usr/lib/python2.7/site-packages/salt/states/winrepo.pyt __virtual__ s c C@ s8 i | d 6t d 6i d 6d d 6} t j j t j j t j j d � � } | d } | d } t j j | | � } t } | s�t j j
| � s� t | d <d j | � | d <| St j j
| � s� t } d j | � | d <q�t j | � t j
} x� t j j j | � D]} \ } }
} xk t j | |
� D]W } t j j | | � } t j | � t j
| k r-d
j | | � | d <t } Pq-q-WqWn t d r�d | d <| S| r�| r�| St j j | � }
|
j d g � } i | d
6| d <t | t � r4| i k r4| r4t j | � 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
u nameu resultu changesu u commentu masteru winrepo_diru winrepo_cachefileu {0} is missingu mtime({0}) < mtime({1})u testu winrepo.genrepou winrepou winrepo.genrepo returned emptyN( t Truet saltt configt
master_configt ost patht joint syspathst
CONFIG_DIRt Falset existst formatt statt ST_MTIMEt utilst os_walkt itertoolst chaint __opts__t Nonet runnert RunnerClientt cmdt
isinstancet dictt remove( t namet forcet allow_emptyt retR t winrepo_dirt winrepo_cachefilet executet winrepo_cachefile_mtimet roott dirst filest full_pathR t
runner_ret( ( s7 /usr/lib/python2.7/site-packages/salt/states/winrepo.pyt genrepo sN
%
"
( t __doc__t
__future__R R R R R R t salt.runnerR t salt.configt
salt.syspathst salt.utils.pathR R
R+ ( ( ( s7 /usr/lib/python2.7/site-packages/salt/states/winrepo.pyt <module> s