mini_buildd.sbuild module¶
- mini_buildd.sbuild.CONFIG_DIR = '.config'¶
Build dir constants.
- mini_buildd.sbuild.APT_GET = 'apt-get --quiet --yes --option=APT::Install-Recommends=false --option=Acquire::Languages=none --option=Dpkg::Use-Pty=false --option=Dpkg::Options::=--force-confdef --option=Dpkg::Options::=--force-confnew'¶
Quiet, non-interactive, least invasive and loggable apt-get call (Dpkg::Use-Pty=false is to avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539617).
- mini_buildd.sbuild.BASH_CONFIG_DIR = '${0%/*/*}/.config'¶
Helper to compute CONFIG_DIR in bash code
- class mini_buildd.sbuild.Blocks(type_)¶
Bases:
Dir
- extra_option(top=False)¶
- extra_options()¶
- usage()¶
- validate(extra_option)¶
Validate extra option value from user space (string, space separated). Return extra option value as list.
- line(extra_option, top=False)¶
- validate_all(get)¶
- class mini_buildd.sbuild.ConfigBlocks¶
Bases:
Blocks
- default()¶
- configure(file_, get, top)¶
Add configured blocks to provided file (space separated config option is auto-magically received via provided getter).
- class mini_buildd.sbuild.SetupBlocks¶
Bases:
Blocks
- default()¶
- configure(dir_, get, top)¶
Add configured blocks to provided dir (space separated config option is auto-magically received via provided getter).
- class mini_buildd.sbuild.SBuild(breq)¶
Bases:
object
- BUILDLOG_STATUS_REGEX = re.compile('^(Status|Lintian|Piuparts|Autopkgtest|Build-Time|Package-Time|Space|Build-Space): [^ ]+.*$')¶
- run(bres)¶
Run sbuild && update buildresult from build log.
Note
This will iterate all lines of the build log, and parse out the selection of sbuild’s summary status we need. In case the build log above does write the same output like ‘Status: xyz’, sbuild’s correct status at the bottom will override this later. Best thing, though, would be if sbuild would eventually provide a better way to get these values.
- cancel()¶