|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
_checkIndexes(self,
failure=' error ' )
check to see if the indexes are built, if not do what failure demands
either error out or build the indexes, default is to error out |
source code
|
|
|
dropCachedData(self)
Do nothing, mainly for the testing code. |
source code
|
|
|
|
|
searchNevra(self,
name=None,
epoch=None,
ver=None,
rel=None,
arch=None)
return list of pkgobjects matching the nevra requested |
source code
|
|
|
|
|
getProvides(self,
name,
flags=None,
version=( None, None, None) )
return dict { packages -> list of matching provides } |
source code
|
|
|
getRequires(self,
name,
flags=None,
version=( None, None, None) )
return dict { packages -> list of matching requires } |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
searchFiles(self,
name)
return list of packages by filename FIXME - need to add regex match
against keys in file list |
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
|
|
|
|
|
|
|
|
|
|
|
returnPackages(self,
repoid=None,
patterns=None,
ignore_case=False)
return list of all packages, takes optional repoid |
source code
|
|
|
returnNewestByNameArch(self,
naTup=None,
patterns=None,
ignore_case=False)
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,
patterns=None,
ignore_case=False)
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
|
|
|
simplePkgList(self,
patterns=None,
ignore_case=False)
returns a list of pkg tuples (n, a, e, v, r) optionally from a single
repoid |
source code
|
|
|
|
|
|
|
|
Inherited from PackageSackBase :
__cmp__ ,
__iter__ ,
addPackageExcluder ,
contains ,
matchPackageNames ,
packagesByTuple ,
populate ,
returnLeafNodes ,
searchAll ,
searchPO ,
searchPkgTuple ,
simpleVersion
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|