Package gbp :: Package rpm :: Class SrcRpmFile
[hide private]
[frames] | no frames]

Class SrcRpmFile

object --+
         |
        SrcRpmFile

Keeps all needed data read from a source rpm

Instance Methods [hide private]
 
__init__(self, srpmfile)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_get_version(self)
Get the (downstream) version of the RPM
 
_get_name(self)
Get the name of the RPM package
 
_get_upstream_version(self)
Get the upstream version of the package
 
_get_packager(self)
Get the packager of the RPM package
 
__str__(self)
str(x)
 
unpack(self, dest_dir)
Unpack the source rpm to tmpdir.
 
debugprint(self)
Print info about the RPM in readable way

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

Properties [hide private]
  version
Get the (downstream) version of the RPM
  name
Get the name of the RPM package
  upstreamversion
Get the upstream version of the package
  packager
Get the packager of the RPM package

Inherited from object: __class__

Method Details [hide private]

__init__(self, srpmfile)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

unpack(self, dest_dir)

 

Unpack the source rpm to tmpdir. Leave the cleanup to the caller in case of an error.


Property Details [hide private]

version

Get the (downstream) version of the RPM

Get Method:
_get_version(self) - Get the (downstream) version of the RPM

name

Get the name of the RPM package

Get Method:
_get_name(self) - Get the name of the RPM package

upstreamversion

Get the upstream version of the package

Get Method:
_get_upstream_version(self) - Get the upstream version of the package

packager

Get the packager of the RPM package

Get Method:
_get_packager(self) - Get the packager of the RPM package