Package buildbot :: Package steps :: Package package :: Package rpm :: Module rpmspec :: Class RpmSpec
[frames] | no frames]

Class RpmSpec

source code

process.properties.PropertiesMixin --+            
                                     |            
           process.buildstep.BuildStep --+        
                                         |        
        process.buildstep.LoggingBuildStep --+    
                                             |    
                            shell.ShellCommand --+
                                                 |
                                                RpmSpec

read parameters out of an rpm spec file

Instance Methods
 
__init__(self, specfile=None, **kwargs)
Creates the RpmSpec object.
source code
 
load(self)
call this function after the file exists to populate properties
source code

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

Inherited from process.buildstep.LoggingBuildStep: addLogFile, checkDisconnect, commandComplete, 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, getStepFactory, releaseLocks, runCommand, setBuildSlave, setProgress, setupProgress, slaveVersion, slaveVersionIsOlderThan, startStep

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

Class Variables
  n_regex = re.compile(r'^Name: *([^\s]*)')
  v_regex = re.compile(r'^Version: *([0-9\.]*)')

Inherited from shell.ShellCommand: description, descriptionDone, flunkOnFailure, name, renderables

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

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

Instance Variables

Inherited from shell.ShellCommand: command, lazylogfiles, logfiles

Properties
  loaded
  pkg_name
  pkg_version
Method Details

__init__(self, specfile=None, **kwargs)
(Constructor)

source code 

Creates the RpmSpec object.

Parameters:
  • specfile (str) - the name of the specfile to get the package name and version from
  • kwargs (dict) - All further keyword arguments.
Overrides: process.buildstep.BuildStep.__init__

Property Details

loaded

Get Method:
unreachable(self)

pkg_name

Get Method:
unreachable(self)

pkg_version

Get Method:
unreachable(self)