l.a.s.publish_ftpmaster : module documentation

Part of lp.archivepublisher.scripts

Master distro publishing script.
Function get_publishable_archives Get all archives for distribution that should be published.
Function get_backup_dists Return the path of an archive's backup dists directory.
Function get_dists Return the path of an archive's dists directory.
Function get_working_dists Return the working path for an archive's dists directory.
Function map_distro_pubconfigs Return dict mapping archive purpose for distro's pub configs.
Function newer_mtime Is one_file newer than other_file, or is other_file missing?
Class PublishFTPMaster Publish a distro (update).
def get_publishable_archives(distribution):
Get all archives for distribution that should be published.
def get_backup_dists(archive_config):
Return the path of an archive's backup dists directory.
def get_dists(archive_config):
Return the path of an archive's dists directory.
Parametersarchive_configConfiguration for the archive in question.
def get_working_dists(archive_config):
Return the working path for an archive's dists directory.

In order for publish-distro to operate on an archive, its dists directory must be in the archive root. So we move the backup dists directory to a working location below the archive root just for publish-distro. This method composes the temporary path.

def map_distro_pubconfigs(distro):
Return dict mapping archive purpose for distro's pub configs.
ParametersdistroDistribution to get publisher configs for.
ReturnsDict mapping archive purposes to publisher configs, insofar as they have publisher configs.
def newer_mtime(one_file, other_file):
Is one_file newer than other_file, or is other_file missing?
API Documentation for Launchpad, generated by pydoctor at 2018-02-20 00:00:10.