%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/landscape/lib/apt/package/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/landscape/lib/apt/package/__pycache__/store.cpython-312.pyc |
� �~�e�A � � � d Z ddlZ ddlZddlmZmZ ddl m Z ddlmZ G d� de � Z G d � d e � Z G d� d� Z G d � de� Z G d� de� Z G d� d� Z G d� d� Zd� Zd� Zd� Zy# e$ r ddlmZ Y �uw xY w)zEProvide access to the persistent data used by L{PackageTaskHandler}s.� N)�dbapi2)� iteritems�long)�bpickle)�with_cursorc � � e Zd ZdZy)�UnknownHashIDRequestz$Raised for unknown hash id requests.N��__name__� __module__�__qualname__�__doc__� � �A/usr/lib/python3/dist-packages/landscape/lib/apt/package/store.pyr r s � �.r r c � � e Zd ZdZy)�InvalidHashIdDbzARaised when trying to add an invalid hash=>id lookaside database.Nr r r r r r s � �Kr r c � � e Zd ZdZdZd� Zd� Zed� � Zed� � Z ed� � Z ed� � Zed � � Zed � � Z y)�HashIdStorea C{HashIdStore} stores package hash=>id mappings in a file. The file is a SQLite database that contains a single table called "hash". The table schema is defined in L{ensure_hash_id_schema}. @param filename: The file where the mappings are persisted to. Nc � � || _ y �N)� _filename)�self�filenames r �__init__zHashIdStore.__init__"