Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/dnf/__pycache__/ |
Upload File : |
a �!cV � @ s� d dl mZ d dl mZ d dlmZ d dlZd dlZd dlZd dl Z d dl Z d dlZd dlZe � d�ZG dd� de�ZG dd � d e�ZG d d� de�ZdS )� )�absolute_import)�unicode_literals)�_N�dnfc @ s, e Zd Zdd� Zg fdd�Zedd� �ZdS )�JSONDBc C s0 t j�|�s,tj�t j�|�� | �|g � d S �N)�os�path�isfiler �utilZ ensure_dir�dirname�_write_json_db)�self� json_path� r �1/usr/lib/python3.9/site-packages/dnf/persistor.py�_check_json_db* s zJSONDB._check_json_dbc C s� t |d��}|�� }W d � n1 s(0 Y |dkrXt�td�|� | �||� n>zt�|�}W n. ty� } zt�|� W Y d }~n d }~0 0 |S )N�r� z%s is empty file) �open�read�logger�warningr r �json�loads� ValueError)r r �default�f�content�er r r �_get_json_db0 s & zJSONDB._get_json_dbc C s: t | d��}t�||� W d � n1 s,0 Y d S )N�w)r r �dump)r r r r r r r >