Package portage :: Package dbapi :: Module bintree
[hide private]

Module bintree

source code

Classes [hide private]
  basestring
str(object='') -> string
  long
int(x=0) -> int or long int(x, base=10) -> int or long
  UseCachedCopyOfRemoteIndex
  bindbapi
  binarytree
this tree scans for a list of all packages available in PKGDIR
Functions [hide private]
dict
_pkgindex_cpv_map_latest_build(pkgindex)
Given a PackageIndex instance, create a dict of cpv -> metadata map.
source code
Variables [hide private]
  __package__ = 'portage.dbapi'
  hashfunc_map = {}

Imports: portage, slot_dict_class, CACHE_PATH, fakedbapi, Atom, use_reduce, paren_enclose, AlarmSignal, InvalidData, InvalidPackageName, PermissionDenied, PortageException, _, _movefile, os, _encodings, _unicode_decode, _unicode_encode, codecs, errno, io, stat, subprocess, sys, tempfile, textwrap, traceback, warnings, GzipFile, chain, urlparse, _unicode, EOutput, _apply_hash_filter, _check_distfile, _hash_filter, _hide_url_passwd, _pkg_str, _urlopen, atomic_ofstream, best, catpkgsplit, catsplit, colorize, dep_expand, dep_getkey, ensure_dirs, isjustname, isvalidatom, listdir, lockfile, match_from_list, normalize_path, perform_multiple_checksums, unlockfile, update_dbentries, verify_all, writemsg, writemsg_stdout


Function Details [hide private]

_pkgindex_cpv_map_latest_build(pkgindex)

source code 

Given a PackageIndex instance, create a dict of cpv -> metadata map. If multiple packages have identical CPV values, prefer the package with latest BUILD_TIME value.

Parameters:
  • pkgindex (PackageIndex) - A PackageIndex instance.
Returns: dict
a dict containing entry for the give cpv.