%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/cyg.pyo |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z e j e � Z d � Z d d d � Z d d d � Z d d d d � Z
d e f d
� � YZ d S( u�
Installation of Cygwin packages.
A state module to manage cygwin packages. Packages can be installed
or removed.
.. code-block:: yaml
dos2unix:
cyg.installed
i ( t absolute_importt print_functiont unicode_literalsNc C@ s
d t k S( u;
Only load if cyg module is available in __salt__.
u cyg.list( t __salt__( ( ( s3 /usr/lib/python2.7/site-packages/salt/states/cyg.pyt __virtual__ s u x86_64c C@ sA i | d 6d d 6d d 6i d 6} | d k rF t | d <d | d <| St j d j | � � t d
| d | d | �s� t | d <d
| d <| St d | | � } | | k r� t | d <d | d <| St d r� d j | � | d <| St d | d | d | �r)t | d <d | d | <d | d <n t | d <d | d <| S( u7
Make sure that a package is installed.
name
The name of the package to install
cyg_arch : x86_64
The cygwin architecture to install the package into.
Current options are x86 and x86_64
mirrors : None
List of mirrors to check.
None will use a default mirror (kernel.org)
CLI Example:
.. code-block:: yaml
rsync:
cyg.installed:
- mirrors:
- http://mirror/without/public/key: ""
- http://mirror/with/public/key: http://url/of/public/key
u nameu resultu u commentu changesu x86u x86_64u8 The 'cyg_arch' argument must be one of 'x86' or 'x86_64'u) Installed State: Initial Mirror list: {0}u cyg.check_valid_packaget cyg_archt mirrorsu Invalid package name.u cyg.listu Package is already installed.u testu) The package {0} would have been installedu cyg.installu Installedu"