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

Module packages

source code

Classes and functions dealing with rpm package representations.

Classes [hide private]
  FakeSack
Fake PackageSack to use with FakeRepository
  FakeRepository
Fake repository class for use in rpmsack package objects
  PackageObject
Base Package Object - sets up the default storage dicts and the most common returns
  RpmBase
return functions and storage for rpm-specific data
  PackageEVR
A comparable epoch, version, and release representation.
  YumAvailablePackage
derived class for the packageobject and RpmBase packageobject yum uses this for dealing with packages in a repository
  YumHeaderPackage
Package object built from an rpm header
  _CountedReadFile
Has just a read() method, and keeps a count so we can find out how much has been read.
  _PkgVerifyProb
Holder for each "problem" we find with a pkg.verify().
  YumInstalledPackage
super class for dealing with packages in the rpmdb
  YumLocalPackage
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.
  YumUrlPackage
Class to handle an arbitrary package from a URL this inherits most things from YumLocalPackage, but will download a remote package to make it local.
Functions [hide private]
 
comparePoEVR(po1, po2)
Compare two Package or PackageEVR objects.
source code
 
comparePoEVREQ(po1, po2)
Compare two Package or PackageEVR objects for equality.
source code
 
buildPkgRefDict(pkgs, casematch=True)
take a list of pkg objects and return a dict the contains all the possible naming conventions for them eg: for (name,i386,0,1,1) dict[name] = (name, i386, 0, 1, 1) dict[name.i386] = (name, i386, 0, 1, 1) dict[name-1-1.i386] = (name, i386, 0, 1, 1) dict[name-1] = (name, i386, 0, 1, 1) dict[name-1-1] = (name, i386, 0, 1, 1) dict[0:name-1-1.i386] = (name, i386, 0, 1, 1) dict[name-0:1-1.i386] = (name, i386, 0, 1, 1)
source code
 
parsePackages(pkgs, usercommands, casematch=0, unique='repo-epoch-name-version-release-arch')
matches up the user request versus a pkg list: for installs/updates available pkgs should be the 'others list' for removes it should be the installed list of pkgs takes an optional casematch option to determine if case should be matched exactly.
source code
Variables [hide private]
  _RPMVERIFY_DIGEST = 1
  _RPMVERIFY_FILESIZE = 2
  _RPMVERIFY_LINKTO = 4
  _RPMVERIFY_USER = 8
  _RPMVERIFY_GROUP = 16
  _RPMVERIFY_MTIME = 32
  _RPMVERIFY_MODE = 64
  _RPMVERIFY_RDEV = 128
  _installed_repo = FakeRepository('installed')
  __package__ = 'yum'
Function Details [hide private]

parsePackages(pkgs, usercommands, casematch=0, unique='repo-epoch-name-version-release-arch')

source code 

matches up the user request versus a pkg list: for installs/updates available pkgs should be the 'others list' for removes it should be the installed list of pkgs takes an optional casematch option to determine if case should be matched exactly. Defaults to not matching.