c.b.d.DebianBuildManager(BuildManager) : class documentation

Part of canonical.buildd.debian View In Hierarchy

Known subclasses: canonical.buildd.binarypackage.BinaryPackageBuildManager, canonical.buildd.sourcepackagerecipe.SourcePackageRecipeBuildManager, canonical.buildd.translationtemplates.TranslationTemplatesBuildManager

Base behaviour for Debian chrooted builds.
Method __init__ Create a BuildManager.
Method initial_build_state Undocumented
Method initiate Initiate a build with a given set of files and chroot.
Method doSourcesList Override apt/sources.list.
Method doUpdateChroot Perform the chroot upgrade.
Method doRunBuild Run the main build process.
Method doReapProcesses Reap any processes left lying around in the chroot.
Method getChangesFilename Undocumented
Method gatherResults Gather the results of the build and add them to the file cache.
Method iterate Perform an iteration of the slave.
Method iterate_INIT Just finished initialising the build.
Method iterate_UNPACK Just finished unpacking the tarball.
Method iterate_MOUNT Just finished doing the mounts.
Method getTmpLogContents Undocumented
Method iterate_SOURCES Just finished overwriting sources.list.
Method iterate_UPDATE Just finished updating the chroot.
Method iterate_REAP Finished reaping processes; ignore error returns.
Method iterate_UMOUNT Just finished doing the unmounting.
Method iterate_CLEANUP Just finished the cleanup.
Static Method _parseChangesFile A generator that iterates over files listed in a changes file.

Inherited from BuildManager:

Method runSubProcess Run a sub process capturing the results in the log.
Method doUnpack Unpack the build chroot.
Method doCleanup Remove the build tree etc.
Method doMounting Mount things in the chroot, e.g. proc.
Method doUnmounting Unmount the chroot.
Method abort Abort the build by killing the subprocess.
Method kill Send SIGKILL to child process
def __init__(self, slave, buildid):
Create a BuildManager.
ParametersslaveA BuildDSlave.
buildidIdentifying string for this build.
@property
def initial_build_state(self):
Undocumented
def initiate(self, files, chroot, extra_args):
Initiate a build with a given set of files and chroot.
def doSourcesList(self):
Override apt/sources.list.

Mainly used for PPA builds.

def doUpdateChroot(self):
Perform the chroot upgrade.
def doRunBuild(self):
Run the main build process.

Subclasses must override this.

def doReapProcesses(self):
Reap any processes left lying around in the chroot.
@staticmethod
def _parseChangesFile(linesIter):
A generator that iterates over files listed in a changes file.
ParameterslinesIteran iterable of lines in a changes file.
def getChangesFilename(self):
Undocumented
def gatherResults(self):
Gather the results of the build and add them to the file cache.

The primary file we care about is the .changes file. We key from there.

def iterate(self, success):
Perform an iteration of the slave.

The BuildManager tends to work by invoking several subprocesses in order. the iterate method is called by the object created by runSubProcess to gather the results of the sub process.

def iterate_INIT(self, success):
Just finished initialising the build.
def iterate_UNPACK(self, success):
Just finished unpacking the tarball.
def iterate_MOUNT(self, success):
Just finished doing the mounts.
def getTmpLogContents(self):
Undocumented
def iterate_SOURCES(self, success):
Just finished overwriting sources.list.
def iterate_UPDATE(self, success):
Just finished updating the chroot.
def iterate_REAP(self, success):
Finished reaping processes; ignore error returns.
def iterate_UMOUNT(self, success):
Just finished doing the unmounting.
def iterate_CLEANUP(self, success):
Just finished the cleanup.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.