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

Class YumAvailablePackage

source code


derived class for the packageobject and RpmBase packageobject yum uses this for dealing with packages in a repository

Instance Methods [hide private]
 
__init__(self, repo, pkgdict=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_ui_from_repo(self)
This reports the repo the package is from, we integrate YUMDB info.
source code
 
exclude(self)
remove self from package sack
source code
 
printVer(self)
returns a printable version string - including epoch, if it's set
source code
 
compactPrint(self) source code
 
_size(self) source code
 
_remote_path(self) source code
 
_remote_url(self)
returns a URL that can be used for downloading the package.
source code
 
_committer(self)
Returns the name of the last person to do a commit to the changelog.
source code
 
_committime(self)
Returns the time of the last commit to the changelog.
source code
 
_checksum(self)
Returns the 'default' checksum
source code
 
getDiscNum(self) source code
 
returnHeaderFromPackage(self) source code
 
returnLocalHeader(self)
returns an rpm header object from the package object's local header cache
source code
 
localPkg(self)
return path to local package (whether it is present there, or not)
source code
 
localHdr(self)
return path to local cached Header file downloaded from package byte ranges
source code
 
verifyLocalPkg(self)
check the package checksum vs the localPkg return True if pkg is good, False if not
source code
 
prcoPrintable(self, prcoTuple)
convert the prco tuples into a nicer human string
source code
 
requiresList(self)
return a list of requires in normal rpm format
source code
 
returnChecksums(self) source code
 
importFromDict(self, pkgdict)
handles an mdCache package dictionary item to populate out the package information
source code
 
_return_remote_location(self) source code
 
_dump_base_items(self) source code
 
_dump_format_items(self) source code
 
_dump_pco(self, pcotype) source code
 
_dump_files(self, primary=False) source code
 
_requires_with_pre(self) source code
 
_dump_requires(self)
returns deps in format
source code
 
_dump_changelog(self, clog_limit) source code
 
xml_dump_primary_metadata(self) source code
 
xml_dump_filelists_metadata(self) source code
 
xml_dump_other_metadata(self, clog_limit=0) source code

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

Inherited from PackageObject (private): _ui_envra, _ui_nevra

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

Inherited from RpmBase (private): _getBaseName

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

Properties [hide private]
  ui_from_repo
  size
  remote_path
  remote_url
returns a URL that can be used for downloading the package.
  committer
Returns the name of the last person to do a commit to the changelog.
  committime
Returns the time of the last commit to the changelog.
  checksum
Returns the 'default' checksum

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, repo, pkgdict=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_ui_from_repo(self)

source code 

This reports the repo the package is from, we integrate YUMDB info. for RPM packages so a package from "fedora" that is installed has a ui_from_repo of "@fedora". Note that, esp. with the --releasever option, "fedora" or "rawhide" isn't authoritive. So we also check against the current releasever and if it is different we also print the YUMDB releasever. This means that installing from F12 fedora, while running F12, would report as "@fedora/13".

_remote_url(self)

source code 

returns a URL that can be used for downloading the package. Note that if you're going to download the package in your tool, you should use self.repo.getPackage.

returnChecksums(self)

source code 
Overrides: PackageObject.returnChecksums

Property Details [hide private]

ui_from_repo

Get Method:
unreachable(self)

size

Get Method:
unreachable(self)

remote_path

Get Method:
_remote_path(self)

remote_url

returns a URL that can be used for downloading the package. Note that if you're going to download the package in your tool, you should use self.repo.getPackage.

Get Method:
_remote_url(self) - returns a URL that can be used for downloading the package.

committer

Returns the name of the last person to do a commit to the changelog.

Get Method:
_committer(self) - Returns the name of the last person to do a commit to the changelog.

committime

Returns the time of the last commit to the changelog.

Get Method:
_committime(self) - Returns the time of the last commit to the changelog.

checksum

Returns the 'default' checksum

Get Method:
_checksum(self) - Returns the 'default' checksum