https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/trac/upgrades/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/trac/upgrades/__pycache__/db32.cpython-310.pyc
o

�k�`��@s4ddlmZddlmZmZddlmZdd�ZdS)�)�backup_config_file)�DbRepositoryProvider�RepositoryManager)� GitwebProjectsRepositoryProviderc	Cs~t|d�|j�ddd�}dD]"}d|}|j�d||j�d|��|j�d|�|j�d	||�qt|�}|r�|�	�D]\}}|pCd|v}	|	rY|j�d
|dd�|j�d
|�q<t
|�}
dd�|
�	�D�}d�t|�t|�@�}	|j�dd|	�|j�d
|	�t|�}|�	�D]\}}|p�d|v}	d|	i}
|�
||
�|	r�|j�d
|�q�|j�dd�|j�d�|j��|��dS)aGReplace list of repositories in [trac] repository_sync_per_request
    with boolean values [repositories] <repos>.sync_per_request and a list
    of repositories in [gitweb-repositories] sync_per_request. Move and
    rename the Gitweb configuration options from the [git] section to
    the [gitweb-repositories] section.
    z	.db32.bak�trac�repository_sync_per_requestz	(default))�base�list�url�	projects_zgitweb-repositories�gitz*Moved [git] %s -> [gitweb-repositories] %s�repositoriesz.sync_per_request�truezEnabled sync_per_request for %scSsg|]\}}|�qS�r)�.0�name�_rr�4/usr/lib/python3/dist-packages/trac/upgrades/db32.py�
<listcomp>0szdo_upgrade.<locals>.<listcomp>z, �sync_per_requestz1Removed [trac] repository_sync_per_request optionN)r�config�getlist�set�get�remove�log�infor�get_repositoriesr�joinr�modify_repository�save�reload_repositories)�env�version�cursor�repos_sync_per_request�suffix�option_name�rmrrr�gwrp�gitweb_repo_names�db_provider�changesrrr�
do_upgradesT
�
�����
��
r-N)�	trac.utilr�trac.versioncontrol.apirr�!tracopt.versioncontrol.git.git_fsrr-rrrr�<module>s


https://t.me/RX1948 - 2025