File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/freezer.cpython-310.pyc
o
�N�g�( � @ s� d Z ddlZddlZddlZddlm mZ ddlm Z ddl
mZ ddlm
Z
e�e�ZddiZdd � Zd
d� Zd dd
�Zd dd�Zdd� Zd!dd�Zdd� Zdd� Zdd� Zdd� Zd!dd�Zdd� ZdS )"z�
Module for freezer
:maintainer: Alberto Planas <aplanas@suse.com>
:maturity: new
:depends: None
:platform: Linux
� N)�CommandExecutionError)�clean_kwargs)�fopen�list_�listc C s dS )z�
Freezer is based on top of the pkg module.
Return True since the `pkg` module should always exist. This
avoids the overhead of loading all modules.
T� r r r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/freezer.py�__virtual__ s r c C s t j�td d�S )z9
Return the path where we will store the states.
Zcachedir�freezer)�os�path�joinZ__opts__r r r r �_states_path$ s r c C s: | sdn| } t � }tj�|| � d��tj�|| � d��fS )zR
Return the full path for the packages and repository freezer
files.
r
� -pkgs.yml� -reps.yml)r r r r
)�name�states_pathr r r �_paths+ s
�r c C s"