|
__init__(self,
root=' / ' ,
releasever=None,
cachedir=None,
persistdir=' /var/lib/yum ' )
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
setCacheDir(self,
cachedir)
Sets the internal cachedir value for the rpmdb, to be the
"installed" directory from this parent. |
source code
|
|
|
|
|
buildIndexes(self)
builds the useful indexes for searching/querying the packageSack This
should be called after all the necessary packages have been
added/deleted |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
installed(self,
name=None,
arch=None,
epoch=None,
ver=None,
rel=None,
po=None)
return if there are any packages in the sack that match the given
NAEVR or the NAEVR of the given po |
source code
|
|
|
returnNewestByNameArch(self,
naTup=None,
patterns=None)
return list of newest packages based on name, arch matching this
means(in name.arch form): foo.i386 and foo.noarch are not compared to
each other for highest version only foo.i386 and foo.i386 will be
compared |
source code
|
|
|
returnNewestByName(self,
name=None)
return list of newest packages based on name matching this means(in
name.arch form): foo.i386 and foo.noarch will be compared to each
other for highest version. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
transactionCacheConflictPackages(self,
pkgs) |
source code
|
|
|
returnConflictPackages(self)
Return a list of packages that have conflicts. |
source code
|
|
|
|
|
transactionReset(self)
We are going to reset the transaction, because the data we've added
already might now be invalid (Eg. |
source code
|
|
|
|
|
|
|
fileRequiresData(self)
Get a cached copy of the fileRequiresData for
depsolving/checkFileRequires, note the giant comment in that function
about how we don't keep this perfect for the providers of the
requires. |
source code
|
|
|
transactionCacheFileRequires(self,
installedFileRequires,
installedUnresolvedFileRequires,
installedFileProvides,
problems) |
source code
|
|
|
_write_file_requires(self,
rpmdbversion,
data) |
source code
|
|
|
|
|
transactionCachePackageChecksums(self,
pkg_checksum_tups) |
source code
|
|
|
_write_package_checksums(self,
rpmdbversion,
data) |
source code
|
|
|
_get_cached_simpleVersion_main(self)
Return the cached string of the main rpmdbv. |
source code
|
|
|
_put_cached_simpleVersion_main(self,
rpmdbv) |
source code
|
|
|
|
|
searchPrimaryFieldsMultipleStrings(self,
fields,
searchstrings,
lowered=False) |
source code
|
|
|
|
|
searchNevra(self,
name=None,
epoch=None,
ver=None,
rel=None,
arch=None)
return list of pkgobjects matching the nevra requested |
source code
|
|
|
|
|
returnLeafNodes(self,
repoid=None)
returns a list of package objects that are not required by any other
package in this repository |
source code
|
|
|
_all_packages(self)
Generator that yield (header, index) for all packages |
source code
|
|
|
_header_from_index(self,
idx)
returns a package header having been given an index |
source code
|
|
|
_search(self,
name=None,
epoch=None,
ver=None,
rel=None,
arch=None)
List of matching packages, to zero or more of NEVRA. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
returnTupleByKeyword(self,
name=None,
arch=None,
epoch=None,
ver=None,
rel=None) |
source code
|
|
|
|
|
returnIndexByTuple(self,
pkgtuple)
returns a list of header indexes based on the pkgtuple provided |
source code
|
|
|
|
|
getProvides(self,
name,
flags=None,
version=( None, None, None) )
searches the rpmdb for what provides the arguments returns a list of
pkg objects of providing packages, possibly empty |
source code
|
|
|
|
|
getRequires(self,
name,
flags=None,
version=( None, None, None) )
searches the rpmdb for what provides the arguments returns a list of
pkgtuples of providing packages, possibly empty |
source code
|
|
|
|
|
return_running_packages(self)
returns a list of yum installed package objects which own a file that
are currently running or in use. |
source code
|
|
|
check_dependencies(self,
pkgs=None)
Checks for any missing dependencies. |
source code
|
|
|
|
|
check_duplicates(self,
ignore_provides=[ ] )
Checks for any "duplicate packages" (those with multiple
versions installed), we ignore any packages with a provide in the
passed provide list (this is how installonlyworks, so we do the
same). |
source code
|
|
Inherited from packageSack.PackageSackBase :
__cmp__ ,
__iter__ ,
__len__ ,
addPackage ,
addPackageExcluder ,
contains ,
matchPackageNames ,
packagesByTuple ,
populate ,
printPackages ,
returnObsoletes ,
searchPO ,
searchPackages ,
searchPkgTuple ,
setCompatArchs
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|