Implementation of a PackageSack that uses sqlite cache instead of
fully expanded metadata objects to provide information
|
__init__(self,
packageClass)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
_sql_MD_pkg_num(self,
MD,
repo)
Give a count of pkgIds in the given repo DB |
source code
|
|
|
_clean_pkgobjlist(self)
If the pkgobjlist is dirty (possible pkgs on it which are excluded)
then clean it, and return the clean 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
|
|
|
_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
|
|
|
|
|
|
|
_delAllPackages(self,
repo)
Exclude all packages from the repo. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_packageByKey(self,
repo,
pkgKey,
exclude=True)
Lookup a pkg by it's pkgKey, if we don't have it load it |
source code
|
|
|
_packageByKeyData(self,
repo,
pkgKey,
data,
exclude=True)
Like _packageByKey() but we already have the data for .pc() |
source code
|
|
|
_pkgtupByKeyData(self,
repo,
pkgKey,
data)
Like _packageByKeyData() but we don't create the package, we just
return the pkgtup. |
source code
|
|
|
_packagesByName(self,
pkgname)
Load all pkgnames from cache, with a given name. |
source code
|
|
|
|
|
|
|
_sql_pkgKey2po(self,
repo,
cur,
pkgs=None,
have_data=False)
Takes a cursor and maps the pkgKey rows into a list of packages. |
source code
|
|
|
_skip_all(self)
Are we going to skip every package in all our repos? |
source code
|
|
|
|
|
searchFiles(*args,
**kwargs)
search primary if file will be in there, if not, search filelists,
use globs, if possible |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
returnNewestByNameArch(*args,
**kwargs)
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(*args,
**kwargs)
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
|
|
|
matchPackageNames(*args,
**kwargs)
take a list strings and match the packages in the sack against it
this will match against: name name.arch name-ver-rel.arch name-ver
name-ver-rel epoch:name-ver-rel.arch name-epoch:ver-rel.arch |
source code
|
|
|
_setupPkgObjList(self,
repoid=None,
patterns=None,
ignore_case=False)
Setup need_full and patterns for _yieldSQLDataList, also see if we
can get away with just using searchNames(). |
source code
|
|
|
|
|
_buildPkgObjList(self,
repoid=None,
patterns=None,
ignore_case=False)
Builds a list of packages, only containing nevra information. |
source code
|
|
|
returnPackages(self,
repoid=None,
patterns=None,
ignore_case=False)
Returns a list of packages, only containing nevra information. |
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 yumRepo.YumPackageSack :
__del__ ,
populate
Inherited from packageSack.PackageSack :
addPackage ,
clearIndexes ,
printPackages ,
searchPackages ,
setCompatArchs
Inherited from packageSack.PackageSackBase :
__cmp__ ,
__iter__ ,
contains ,
packagesByTuple ,
returnLeafNodes ,
searchPO ,
searchPkgTuple ,
simpleVersion
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|