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

Module vartree

source code

Classes [hide private]
  basestring
str(object='') -> string
  long
int(x=0) -> int or long int(x, base=10) -> int or long
  vardbapi
  vartree
this tree will scan a var/db/pkg database located at root (passed to init)
  dblink
This class provides an interface to the installed package database At present this is implemented as a text backend in /var/db/pkg.
Functions [hide private]
 
merge(mycat, mypkg, pkgloc, infloc, myroot=None, settings=None, myebuild=None, mytree=None, mydbapi=None, vartree=None, prev_mtimes=None, blockers=None, scheduler=None, fd_pipes=None) source code
 
unmerge(cat, pkg, myroot=None, settings=None, mytrimworld=None, vartree=None, ldpath_mtimes=None, scheduler=None) source code
 
write_contents(contents, root, f)
Write contents to any file like object.
source code
 
tar_contents(contents, root, tar, protect=None, onProgress=None) source code
Variables [hide private]
  CACHE_PATH = u'var/cache/edb'
  CONFIG_MEMORY_FILE = u'var/lib/portage/config'
  PORTAGE_PACKAGE_ATOM = u'sys-apps/portage'
  PRIVATE_PATH = u'var/lib/portage'
  VDB_PATH = u'var/db/pkg'
  bsd_chflags = None
hash(x)
  _encodings = {u'content': u'utf_8', u'fs': u'utf_8', u'merge':...
  _selinux_merge = None
hash(x)
  __package__ = 'portage.dbapi'
  _repo_separator = u'::'
  _slot_separator = u':'
  _spawn_phase = ??
  _unknown_repo = u'__unknown__'
  bold = <portage.output.create_color_func object at 0x8b0483c>
  dircache = {}
  portage_gid = 250
  portage_uid = 250
  secpass = 1

Imports: portage, dbapi, CommandNotFound, InvalidData, InvalidLocation, InvalidPackageName, FileNotFound, PermissionDenied, UnsupportedAPIException, _, abssymlink, _movefile, os, shutil, _os_merge, _unicode_decode, _unicode_encode, EbuildBuildDir, EbuildPhase, emergelog, MiscFunctionsProcess, SpawnProcess, errno, fnmatch, gc, grp, io, chain, logging, _os, platform, pwd, re, stat, sys, tempfile, textwrap, time, warnings, pickle, _unicode, ConfigProtect, EventLoop, LinkageMap, MergeProcess, PreservedLibsRegistry, QueryCommand, SchedulerInterface, SyncfsProcess, _get_eapi_attrs, _get_slot_re, _merge_logentries, _merge_unicode_error, _pkg_str, apply_secpass_permissions, atomic_ofstream, best, catpkgsplit, catsplit, collect_ebuild_messages, collect_messages, colorize, cpv_getkey, dep_expand, dep_getkey, digraph, doebuild_environment, elog_process, ensure_dirs, env_update, global_event_loop, grabdict, isjustname, isvalidatom, listdir, lockdir, lockfile, match_from_list, movefile, new_protect_filename, normalize_path, perform_md5, pkgsplit, prepare_build_dirs, subprocess, tarfile, unlockdir, unlockfile, use_reduce, vercmp, write_atomic, writedict, writemsg, writemsg_level


Function Details [hide private]

merge(mycat, mypkg, pkgloc, infloc, myroot=None, settings=None, myebuild=None, mytree=None, mydbapi=None, vartree=None, prev_mtimes=None, blockers=None, scheduler=None, fd_pipes=None)

source code 
Parameters:
  • myroot - ignored, settings['EROOT'] is used instead

unmerge(cat, pkg, myroot=None, settings=None, mytrimworld=None, vartree=None, ldpath_mtimes=None, scheduler=None)

source code 
Parameters:
  • myroot - ignored, settings['EROOT'] is used instead
  • mytrimworld - ignored

write_contents(contents, root, f)

source code 

Write contents to any file like object. The file will be left open.


Variables Details [hide private]

_encodings

Value:
{u'content': u'utf_8',
 u'fs': u'utf_8',
 u'merge': u'utf_8',
 u'repo.content': u'utf_8',
 u'stdio': u'utf_8'}