Current Path : /usr/lib/python2.7/dist-packages/landscape/package/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/package/store.pyc |
Tc @ s d Z d d l Z y d d l Z Wn! e k rE d d l m Z n Xd d l m Z d d l m Z d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d YZ d Z d Z d Z d S( sE Provide access to the persistent data used by L{PackageTaskHandler}s.iN( t dbapi2( t bpickle( t with_cursort UnknownHashIDRequestc B s e Z d Z RS( s$ Raised for unknown hash id requests.( t __name__t __module__t __doc__( ( ( s; /usr/lib/python2.7/dist-packages/landscape/package/store.pyR s t InvalidHashIdDbc B s e Z d Z RS( sA Raised when trying to add an invalid hash=>id lookaside database.( R R R ( ( ( s; /usr/lib/python2.7/dist-packages/landscape/package/store.pyR s t HashIdStorec B s e Z d Z d Z d Z d Z e d Z e d Z e d Z e d Z e d Z e d Z RS( s 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. c C s | | _ d S( N( t _filename( t selft filename( ( s; /usr/lib/python2.7/dist-packages/landscape/package/store.pyt __init__ s c C s t | j d S( N( t ensure_hash_id_schemat _db( R ( ( s; /usr/lib/python2.7/dist-packages/landscape/package/store.pyt _ensure_schema"