l.a.publishing : module documentation

Part of lp.archivepublisher

No module docstring
Function reorder_components Return a list of the components provided.
Function remove_suffix Return path but with any compression suffix removed.
Function get_suffixed_indices Return a set of paths to compressed copies of the given index.
Function getPublisher Return an initialized Publisher instance for the given context.
Function get_sources_path Return path to Sources file for the given arguments.
Function get_packages_path Return path to Packages file for the given arguments.
Function cannot_modify_suite Return True for Release pockets of stable series in primary archives.
Class I18nIndex Represents an i18n/Index file.
Interface IArchiveHash Represents a hash algorithm used for index files.
Class MD5ArchiveHash Undocumented
Class SHA1ArchiveHash Undocumented
Class SHA256ArchiveHash Undocumented
Class ByHash Represents a single by-hash directory tree.
Class ByHashes Represents all by-hash directory trees in an archive.
Class Publisher Publisher is the class used to provide the facility to publish
Class DirectoryHash Represents a directory hierarchy for hashing.
Function _getDiskPool Return a DiskPool instance for a given PubConf.
Function _setupHtaccess Setup .htaccess/.htpasswd files for an archive.
def reorder_components(components):
Return a list of the components provided.

The list will be ordered by the semi arbitrary rules of ubuntu. Over time this method needs to be removed and replaced by having component ordering codified in the database.

def remove_suffix(path):
Return path but with any compression suffix removed.
def get_suffixed_indices(path):
Return a set of paths to compressed copies of the given index.
def _getDiskPool(pubconf, log):
Return a DiskPool instance for a given PubConf.

It ensures the given archive location matches the minimal structure required.

def _setupHtaccess(archive, pubconf, log):
Setup .htaccess/.htpasswd files for an archive.
def getPublisher(archive, allowed_suites, log, distsroot=None):
Return an initialized Publisher instance for the given context.

The callsites can override the location where the archive indexes will be stored via 'distroot' argument.

def get_sources_path(config, suite_name, component):
Return path to Sources file for the given arguments.
def get_packages_path(config, suite_name, component, arch, subcomp=None):
Return path to Packages file for the given arguments.
def cannot_modify_suite(archive, distroseries, pocket):
Return True for Release pockets of stable series in primary archives.
API Documentation for Launchpad, generated by pydoctor at 2018-02-17 00:00:03.