%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/modules/ |
Current File : //usr/lib/python2.7/site-packages/salt/modules/openbsdpkg.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 m Z m Z e j e � Z e j d � Z d Z d � Z e d � Z d � Z d � Z d d d d � Z d d e d � Z d d d � Z d � Z d d d � Z d S( u� Package support for OpenBSD .. note:: The package repository is configured on each host using ``/etc/installurl`` from OpenBSD 6.1 onwards. Earlier releases relied on ``/etc/pkg.conf``. .. versionchanged:: 2016.3.5 Package versions on OpenBSD are not normally specified explicitly; instead packages may be available in multiple *flavors*, and *branches* which are specified by the format of the package name. This module allows you to use the same formatting as ``pkg_add(1)``, and will select the empty flavor and default branch by default. Examples: .. code-block:: yaml - rsync - vim--no_x11 - ruby%2.3 i ( t absolute_importt print_functiont unicode_literalsN( t CommandExecutionErrort MinionErroru0 ^((?:[^-]+|-(?![0-9]))+)-([0-9][^-]*)(?:-(.*))?$u pkgc C@ s t d d k r t St d f S( u9 Set the virtual pkg module if the os is OpenBSD u osu OpenBSDuT The openbsdpkg execution module cannot be loaded: only available on OpenBSD systems.( t __grains__t __virtualname__t False( ( ( s; /usr/lib/python2.7/site-packages/salt/modules/openbsdpkg.pyt __virtual__/ s c K@ ss t j j j | � } t g d D]$ } t j j j | j | � � ^ q � rP i Sd t k r� | rj t d St j t d � } t d | � | Sn i } d } t d | d d �} x� | j � D]r } y"