File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/pkgbuild.cpython-310.pyc
o
�N�gw- � @ s` d Z ddlZddlZddlZe�e�Zdd� Z ddd �Z
dd
d�Z dS )ay
The pkgbuild state is the front of Salt package building backend. It
automatically builds DEB and RPM packages from specified sources
.. versionadded:: 2015.8.0
.. code-block:: yaml
salt_2015.5.2:
pkgbuild.built:
- runas: thatch
- results:
- salt-2015.5.2-2.el7.centos.noarch.rpm
- salt-api-2015.5.2-2.el7.centos.noarch.rpm
- salt-cloud-2015.5.2-2.el7.centos.noarch.rpm
- salt-master-2015.5.2-2.el7.centos.noarch.rpm
- salt-minion-2015.5.2-2.el7.centos.noarch.rpm
- salt-ssh-2015.5.2-2.el7.centos.noarch.rpm
- salt-syndic-2015.5.2-2.el7.centos.noarch.rpm
- dest_dir: /tmp/pkg
- spec: salt://pkg/salt/spec/salt.spec
- template: jinja
- deps:
- salt://pkg/salt/sources/required_dependency.rpm
- tgt: epel-7-x86_64
- sources:
- salt://pkg/salt/sources/logrotate.salt
- salt://pkg/salt/sources/README.fedora
- salt://pkg/salt/sources/salt-2015.5.2.tar.gz
- salt://pkg/salt/sources/salt-2015.5.2-tests.patch
- salt://pkg/salt/sources/salt-api
- salt://pkg/salt/sources/salt-api.service
- salt://pkg/salt/sources/salt-master
- salt://pkg/salt/sources/salt-master.service
- salt://pkg/salt/sources/salt-minion
- salt://pkg/salt/sources/salt-minion.service
- salt://pkg/salt/sources/saltpkg.sls
- salt://pkg/salt/sources/salt-syndic
- salt://pkg/salt/sources/salt-syndic.service
- salt://pkg/salt/sources/SaltTesting-2015.5.8.tar.gz
/tmp/pkg:
pkgbuild.repo
� Nc
C s� z t t�|��}W n. ty7 } z"|jtjkrt�d|� n|jtjkr*t� d|� t � }W Y d}~nd}~ww t
t | ��|��S )zz
Return a list of the filenames specified in the ``results`` argument, which
are not present in the dest_dir.
z,pkgbuild.built: dest_dir '%s' does not existz+pkgbuilt.built: cannot access dest_dir '%s'N)�set�os�listdir�OSError�errno�ENOENT�log�debugZEACCES�error�sorted�
difference)�results�dest_dirZpresent�exc� r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/pkgbuild.py�_get_missing_results4 s ��r F�base�/var/log/salt/pkgbuildc
C sV | i ddd�}
| sd|
d<