This module is a subclass of Reporter that provides convenience
methods for creating version reporters. A version reporter reports this
version information for a package in the following schema (i.e., this is
the body of the Inca report):
Version information can be set using one of the basic methods
setPackageVersion (for the first example) or setSubpackageVersion (for
the second). In this case, the user retrieves a package's version
information directly and uses one of these two methods to report it.
This module also provides convenience methods that retrieve a package
version using conventional methods of querying version information.
|
|
__init__(self,
**attributes)
Class constructor that returns a new VersionReporter object. |
source code
|
|
|
|
getPackageName(self)
Returns the name of the package. |
source code
|
|
|
|
getPackageVersion(self)
Returns the version of the package. |
source code
|
|
|
|
getSubpackageNames(self)
Returns a list of all the names of all subpackages with a set
version. |
source code
|
|
|
|
getSubpackageVersion(self,
name)
Returns the version of subpackage name. |
source code
|
|
|
|
|
|
|
setPackageName(self,
name)
Set the name of the package. |
source code
|
|
|
|
setPackageVersion(self,
version)
Report the version of a package as version. |
source code
|
|
|
|
setSubpackageVersion(self,
name,
version)
Report the version of subpackage name as version. |
source code
|
|
|
|
|
|
|
setVersionByExecutable(self,
command,
pattern=None,
timeout=None)
Retrieve package version information by executing command and greping
the output for pattern. |
source code
|
|
|
|
|
|
|
|
|
|
setVersionByRpmQuery(self,
pattern)
Set subpackage version information by querying GPT for packages that
contain the regular expression pattern. |
source code
|
|
|
Inherited from Reporter.Reporter:
__del__,
addArg,
addDependency,
argValue,
argValues,
compiledProgramOutput,
compiledProgramStatusOutput,
failPrintAndExit,
getBody,
getCompleted,
getCwd,
getDescription,
getFailMessage,
getName,
getUrl,
getVersion,
log,
loggedCommandOutput,
loggedCommandStatusOutput,
printReport,
processArgv,
report,
setBody,
setCompleted,
setCwd,
setDescription,
setFailMessage,
setName,
setResult,
setUrl,
setVersion,
tempFile,
xmlElement
|