Package _emerge :: Module search :: Class search
[hide private]

Class search

source code

object --+
         |
        search

Instance Methods [hide private]
 
__init__(self, root_config, spinner, searchdesc, verbose, usepkg, usepkgonly, search_index=True)
Searches the available and installed packages for the supplied search key.
source code
 
_spinner_update(self) source code
 
_cp_all(self) source code
 
_aux_get(self, *args, **kwargs) source code
 
_findname(self, *args, **kwargs) source code
 
_getFetchMap(self, *args, **kwargs) source code
 
_visible(self, db, cpv, metadata) source code
 
_first_cp(self, cp) source code
 
_xmatch(self, level, atom)
This method does not expand old-style virtuals because it is restricted to returning matches for a single ${CATEGORY}/${PN} and old-style virual matches unreliable for that when querying multiple package databases.
source code
 
execute(self, searchkey)
Performs the search for the supplied search key
source code
 
_iter_search(self) source code
 
addCP(self, cp) source code
 
output(self)
Outputs the results of the search.
source code
 
getInstallationStatus(self, package) source code
 
getVersion(self, full_package, detail) source code

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

Class Variables [hide private]
  VERSION_SHORT = 1
  VERSION_RELEASE = 2
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, root_config, spinner, searchdesc, verbose, usepkg, usepkgonly, search_index=True)
(Constructor)

source code 

Searches the available and installed packages for the supplied search key. The list of available and installed packages is created at object instantiation. This makes successive searches faster.

Overrides: object.__init__

_xmatch(self, level, atom)

source code 

This method does not expand old-style virtuals because it is restricted to returning matches for a single ${CATEGORY}/${PN} and old-style virual matches unreliable for that when querying multiple package databases. If necessary, old-style virtuals can be performed on atoms prior to calling this method.