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
 
version(self)
Get the (downstream) version of the RPM package
 
name(self)
Get the name of the RPM package
 
upstreamversion(self)
Get the upstream version of the RPM package
 
packager(self)
Get the packager of the RPM package
 
unpack(self, dest_dir)
Unpack the source rpm to tmpdir.

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

Properties [hide private]

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)

version(self)

 

Get the (downstream) version of the RPM package

Decorators:
  • @property

name(self)

 

Get the name of the RPM package

Decorators:
  • @property

upstreamversion(self)

 

Get the upstream version of the RPM package

Decorators:
  • @property

packager(self)

 

Get the packager of the RPM package

Decorators:
  • @property

unpack(self, dest_dir)

 

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