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
 
__str__(self)
str(x)
 
unpack(self, dest_dir, srctarballdir=None)
Unpack the source rpm to tmpdir, move source tarball to srctallbardir.
 
guess_orig_file(self)
Try to guess the name of the primary upstream/source tarball returns a tuple with tarball filename and compression suffix
 
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__

Class Variables [hide private]
  release_re = re.compile(r'(?P<release>[0-9]*)\.(?P<buildid>[a-...
Properties [hide private]
  version
Get the (downstream) version of the RPM
  pkg
Get the name of the RPM package
  upstream_version
Get the upstream version of the 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, srctarballdir=None)

 

Unpack the source rpm to tmpdir, move source tarball to srctallbardir. Leave the cleanup to the caller in case of an error


Class Variable Details [hide private]

release_re

Value:
re.compile(r'(?P<release>[0-9]*)\.(?P<buildid>[a-zA-Z0-9].*)$')

Property Details [hide private]

version

Get the (downstream) version of the RPM

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

pkg

Get the name of the RPM package

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

upstream_version

Get the upstream version of the package

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