l.a.u.RepositoryIndexFile : class documentation

Part of lp.archivepublisher.utils View In Hierarchy

Facilitates the publication of repository index files.

It allows callsites to publish index files in different medias (plain, gzip, bzip2, and xz) transparently and atomically.

Method __init__ Store repositories destinations and filename.
Method __enter__ Undocumented
Method __exit__ Undocumented
Method write Write contents to all target medias.
Method close Close temporary media and atomically publish them.
def __init__(self, path, temp_root, compressors=None):
Store repositories destinations and filename.

The given 'temp_root' needs to exist; on the other hand, the directory containing 'path' will be created on close if it doesn't exist.

Additionally creates the needed temporary files in the given 'temp_root'.

def __enter__(self):
Undocumented
def __exit__(self, type, value, traceback):
Undocumented
def write(self, content):
Write contents to all target medias.
def close(self):
Close temporary media and atomically publish them.

If necessary the given 'root' destination is created at this point.

It also fixes the final files permissions making them readable and writable by their group and readable by others.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.