Package buildbot :: Package steps :: Package package :: Package rpm :: Module mock :: Class MockBuildSRPM
[frames] | no frames]

Class MockBuildSRPM

source code

                            object --+                
                                     |                
process.properties.PropertiesMixin --+                
                                     |                
           process.buildstep.BuildStep --+            
                                         |            
        process.buildstep.LoggingBuildStep --+        
                                             |        
                            shell.ShellCommand --+    
                                                 |    
                                              Mock --+
                                                     |
                                                    MockBuildSRPM

Build a srpm within a mock. Requires a spec file and a sources dir.

Instance Methods
 
__init__(self, spec=None, sources=None, **kwargs)
Creates the MockBuildSRPM object.
source code
 
commandComplete(self, cmd) source code

Inherited from Mock: start

Inherited from shell.ShellCommand: buildCommandKwargs, describe, getWorkdir, setBuild, setCommand, setDefaultWorkdir, setStepStatus, setupEnvironment

Inherited from process.buildstep.LoggingBuildStep: addLogFile, checkDisconnect, createSummary, evaluateCommand, getText, getText2, interrupt, maybeGetText2, setStatus, setupLogfiles, startCommand

Inherited from process.buildstep.BuildStep: __provides__, acquireLocks, addCompleteLog, addFactoryArguments, addHTMLLog, addLog, addLogObserver, addURL, failed, finished, getLog, getSlaveName, releaseLocks, runCommand, setBuildSlave, setProgress, setupProgress, slaveVersion, slaveVersionIsOlderThan, startStep

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from process.properties.PropertiesMixin: __providedBy__, getProperties, getProperty, hasProperty, has_key, render, setProperty

Static Methods

Inherited from process.buildstep.BuildStep: __new__

Class Variables
  name = 'mockbuildsrpm'
  description = ['mock buildsrpm']
  descriptionDone = ['mock buildsrpm']
  spec = None
hash(x)
  sources = '.'

Inherited from Mock: flunkOnFailure, haltOnFailure, mock_logfiles, resultdir, root

Inherited from shell.ShellCommand: descriptionSuffix, renderables

Inherited from process.buildstep.LoggingBuildStep: cmd, parms, progressMetrics

Inherited from process.buildstep.BuildStep: __implemented__, alwaysRun, build, doStepIf, flunkOnWarnings, hideStepIf, locks, progress, set_runtime_properties, step_status, useProgress, warnOnFailure, warnOnWarnings

Instance Variables

Inherited from shell.ShellCommand: command, lazylogfiles, logfiles

Properties

Inherited from object: __class__

Method Details

__init__(self, spec=None, sources=None, **kwargs)
(Constructor)

source code 

Creates the MockBuildSRPM object.

Parameters:
  • spec (str) - the path of the specfiles.
  • sources (str) - the path of the sources dir.
  • kwargs (dict) - All further keyword arguments.
Overrides: object.__init__

commandComplete(self, cmd)

source code 
Overrides: process.buildstep.LoggingBuildStep.commandComplete