Package backend :: Package common :: Module rhn_rpm :: Class RPM_Package
[hide private]
[frames] | no frames]

Class RPM_Package

source code


Instance Methods [hide private]
 
__init__(self, input_stream=None) source code
 
read_header(self)
reads header from self.input_file
source code
 
_get_header_byte_range(self)
Return the start and end bytes of the rpm header object.
source code
 
save_payload(self, output_stream)
saves payload to output_stream
source code

Inherited from spacewalk.common.rhn_pkg.A_Package: payload_checksum

Static Methods [hide private]
 
_get_header_struct_size(struct_lead)
Compute the size in bytes of the rpm header struct starting at the current position in package_file.
source code

Inherited from spacewalk.common.rhn_pkg.A_Package (private): _read_bytes, _stream_copy

Method Details [hide private]

__init__(self, input_stream=None)
(Constructor)

source code 
Overrides: spacewalk.common.rhn_pkg.A_Package.__init__

read_header(self)

source code 

reads header from self.input_file

Overrides: spacewalk.common.rhn_pkg.A_Package.read_header
(inherited documentation)

_get_header_byte_range(self)

source code 

Return the start and end bytes of the rpm header object. Raw header data are then stored in self.header_data.

For details of the rpm file format, see: http://www.rpm.org/max-rpm/s1-rpm-file-format-rpm-file-format.html

save_payload(self, output_stream)

source code 

saves payload to output_stream

Overrides: spacewalk.common.rhn_pkg.A_Package.save_payload
(inherited documentation)