Package yum :: Module packages :: Class YumLocalPackage
[hide private]
[frames] | no frames]

Class YumLocalPackage

source code


Class to handle an arbitrary package from a file path this inherits most things from YumInstalledPackage because installed packages and an arbitrary package on disk act very much alike. init takes a ts instance and a filename/path to the package.

Instance Methods [hide private]
 
__init__(self, ts=None, filename=None)
hand in an rpm header, we'll assume it's installed and query from there
source code
 
isSrpm(self) source code
 
localPkg(self)
return path to local package (whether it is present there, or not)
source code
 
_do_checksum(self, checksum_type=None) source code
 
returnChecksums(self) source code
 
verifyLocalPkg(self)
don't bother "checking" the package matches itself.
source code
 
_get_header_byte_range(self)
takes an rpm file or fileobject and returns byteranges for location of the header
source code
 
_return_remote_location(self) source code

Inherited from YumHeaderPackage: __getattr__, __str__, doepoch, returnChangelog, returnFileEntries, returnLocalHeader, returnPrco, tagByName

Inherited from YumAvailablePackage: compactPrint, exclude, getDiscNum, importFromDict, localHdr, prcoPrintable, printVer, requiresList, returnHeaderFromPackage, xml_dump_filelists_metadata, xml_dump_other_metadata, xml_dump_primary_metadata

Inherited from PackageObject: __cmp__, __eq__, __getitem__, __ne__, __repr__, returnIdSum, returnSimple, verCMP, verEQ, verGE, verGT, verLE, verLT

Inherited from PackageObject (private): _ui_envra, _ui_nevra

Inherited from RpmBase: __hash__, checkPrco, getProvidesNames, inPrcoRange, matchingPrcos, returnEVR, returnFileTypes, returnPrcoNames, simpleFiles

Inherited from RpmBase (private): _getBaseName

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

Properties [hide private]
  checksum
Returns the 'default' checksum
  hdrend
  hdrstart

Inherited from YumAvailablePackage: committer, committime, remote_path, remote_url, size, ui_from_repo

Inherited from PackageObject: checksums, ui_envra, ui_nevra

Inherited from RpmBase: EVR, base_package_name, changelog, conflicts, conflicts_names, conflicts_print, dirlist, filelist, ghostlist, obsoletes, obsoletes_names, obsoletes_print, provides, provides_names, provides_print, requires, requires_names, requires_print

Inherited from object: __class__

Method Details [hide private]

__init__(self, ts=None, filename=None)
(Constructor)

source code 

hand in an rpm header, we'll assume it's installed and query from there

Overrides: object.__init__
(inherited documentation)

localPkg(self)

source code 

return path to local package (whether it is present there, or not)

Overrides: YumAvailablePackage.localPkg
(inherited documentation)

returnChecksums(self)

source code 
Overrides: PackageObject.returnChecksums

verifyLocalPkg(self)

source code 

don't bother "checking" the package matches itself.

Overrides: YumAvailablePackage.verifyLocalPkg

_return_remote_location(self)

source code 
Overrides: YumAvailablePackage._return_remote_location

Property Details [hide private]

checksum

Returns the 'default' checksum

Get Method:
unreachable(self)

hdrend

Get Method:
unreachable(self)

hdrstart

Get Method:
unreachable(self)