| Server IP : 178.128.116.179 / Your IP : 216.73.216.206 Web Server : nginx/1.30.3 System : Linux glamautowash 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/landscape/lib/__pycache__/ |
Upload File : |
�
�~�e� � �L � d Z ddlmZ ddlZd� Zy# e$ r ddlmZ Y d� Zyw xY w)z+Functions used by all sqlite-backed stores.� ��wrapsN)�dbapi2c �. � � t � � � fd�� }|S )a� Decorator that encloses the method in a database transaction.
Even though SQLite is supposed to be useful in autocommit mode, we've
found cases where the database continued to be locked for writing
until the cursor was closed. With this in mind, instead of using
the autocommit mode, we explicitly terminate transactions and enforce
cursor closing with this decorator.
c � �� | j s4t j | j � | _ | j � | j j � } �| |g|��i |��}|j
� | j j � |S # |j
� w xY w# t $ r | j j � � w xY w)N)
�_db�sqlite3�connect� _filename�_ensure_schema�cursor�close�commit�
BaseException�rollback)�self�args�kwargsr
�result�methods ��5/usr/lib/python3/dist-packages/landscape/lib/store.py�innerzwith_cursor.<locals>.inner s� �� ��x�x� ���t�~�~�6�D�H����!� ��X�X�_�_�&�F�
���f�>�t�>�v�>�������H�H�O�O�� �
�� ������ ��H�H����� �s$ �B, �
B �+*B, �B)�)B, �,%Cr )r r s ` r �with_cursorr
s"