portage package¶
Subpackages¶
- portage._compat_upgrade package
- portage._emirrordist package
- Submodules
- portage._emirrordist.Config module
- portage._emirrordist.ContentDB module
- portage._emirrordist.DeletionIterator module
- portage._emirrordist.DeletionTask module
- portage._emirrordist.FetchIterator module
- portage._emirrordist.FetchTask module
- portage._emirrordist.MirrorDistTask module
- portage._emirrordist.main module
- Module contents
- Submodules
- portage._sets package
- portage.binrepo package
- portage.cache package
- Subpackages
- Submodules
- portage.cache.anydbm module
- portage.cache.cache_errors module
- portage.cache.ebuild_xattr module
- portage.cache.flat_hash module
- portage.cache.fs_template module
- portage.cache.mappings module
- portage.cache.metadata module
- portage.cache.sql_template module
- portage.cache.sqlite module
- portage.cache.template module
- portage.cache.volatile module
- Module contents
- portage.dbapi package
- Submodules
- portage.dbapi.DummyTree module
- portage.dbapi.IndexedPortdb module
- portage.dbapi.IndexedVardb module
- portage.dbapi._ContentsCaseSensitivityManager module
- portage.dbapi._MergeProcess module
- portage.dbapi._SyncfsProcess module
- portage.dbapi._VdbMetadataDelta module
- portage.dbapi._expand_new_virt module
- portage.dbapi._similar_name_search module
- portage.dbapi.bintree module
- portage.dbapi.cpv_expand module
- portage.dbapi.dep_expand module
- portage.dbapi.porttree module
- portage.dbapi.vartree module
- portage.dbapi.virtual module
- Module contents
- Submodules
- portage.dep package
- portage.elog package
- portage.emaint package
- portage.env package
- portage.package package
- portage.proxy package
- portage.repository package
- portage.sync package
- portage.util package
- Subpackages
- Submodules
- portage.util.ExtractKernelVersion module
- portage.util.SlotObject module
- portage.util._compare_files module
- portage.util._ctypes module
- portage.util._desktop_entry module
- portage.util._get_vm_info module
- portage.util._info_files module
- portage.util._path module
- portage.util._pty module
- portage.util._urlopen module
- portage.util._xattr module
- portage.util.backoff module
- portage.util.bin_entry_point module
- portage.util.changelog module
- portage.util.compression_probe module
- portage.util.configparser module
- portage.util.cpuinfo module
- portage.util.digraph module
- portage.util.env_update module
- portage.util.formatter module
- portage.util.hooks module
- portage.util.install_mask module
- portage.util.lafilefixer module
- portage.util.listdir module
- portage.util.locale module
- portage.util.movefile module
- portage.util.mtimedb module
- portage.util.netlink module
- portage.util.path module
- portage.util.shelve module
- portage.util.socks5 module
- portage.util.whirlpool module
- portage.util.writeable_check module
- Module contents
- portage.xml package
Submodules¶
- portage._global_updates module
- portage._legacy_globals module
- portage._selinux module
- portage.binpkg module
- portage.checksum module
- portage.const module
- portage.cvstree module
- portage.data module
- portage.debug module
- portage.dispatch_conf module
- portage.eapi module
- portage.eclass_cache module
- portage.exception module
- portage.getbinpkg module
- portage.glsa module
- portage.gpg module
- portage.gpkg module
- portage.localization module
- portage.locks module
- portage.mail module
- portage.manifest module
- portage.metadata module
- portage.module module
- portage.news module
- portage.output module
- portage.process module
- portage.progress module
- portage.update module
- portage.versions module
- portage.xpak module
Module contents¶
- class portage._LegacyGlobalProxy(name)¶
Bases:
portage.proxy.objectproxy.ObjectProxy
- _get_target()¶
- _name¶
- portage._decode_argv(argv)¶
- portage._disable_legacy_globals()¶
This deletes the ObjectProxy instances that are used for lazy initialization of legacy global variables. The purpose of deleting them is to prevent new code from referencing these deprecated variables.
- portage._eapi_is_deprecated(eapi)¶
- class portage._eintr_func_wrapper(func)¶
Bases:
object
Wraps a function and handles EINTR by calling the function as many times as necessary (until it returns without raising EINTR).
- _func¶
- portage._get_stdin()¶
Buggy code in python’s multiprocessing/process.py closes sys.stdin and reassigns it to open(os.devnull), but fails to update the corresponding __stdin__ reference. So, detect that case and handle it appropriately.
- portage._movefile(src, dest, **kwargs)¶
Calls movefile and raises a PortageException if an error occurs.
- portage._native_string(s, encoding='utf_8', errors='replace')¶
- portage._parse_eapi_ebuild_head(f)¶
- portage._reset_legacy_globals()¶
- portage._shell_quote(s)¶
Quote a string in double-quotes and use backslashes to escape any backslashes, double-quotes, dollar signs, or backquotes in the string.
- class portage._trees_dict(*pargs, **kargs)¶
Bases:
dict
- _running_eroot¶
- _target_eroot¶
- clear() None. Remove all items from D. ¶
- copy() a shallow copy of D ¶
- fromkeys(value=None, /)¶
Create a new dictionary with keys from iterable and values set to value.
- get(key, default=None, /)¶
Return the value for key if key is in the dictionary, else default.
- items() a set-like object providing a view on D's items ¶
- keys() a set-like object providing a view on D's keys ¶
- pop(k[, d]) v, remove specified key and return the corresponding value. ¶
If the key is not found, return the default if given; otherwise, raise a KeyError.
- popitem()¶
Remove and return a (key, value) pair as a 2-tuple.
Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty.
- setdefault(key, default=None, /)¶
Insert key with a value of default if key is not in the dictionary.
Return the value for key if key is in the dictionary, else default.
- update([E, ]**F) None. Update D from dict/iterable E and F. ¶
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
- values() an object providing a view on D's values ¶
- portage._unicode_decode(s, encoding='utf_8', errors='replace')¶
- portage._unicode_encode(s, encoding='utf_8', errors='backslashreplace')¶
- class portage._unicode_func_wrapper(func, encoding='utf_8')¶
Bases:
object
Wraps a function, converts arguments from unicode to bytes, and return values to unicode from bytes. Function calls will raise UnicodeEncodeError if an argument fails to be encoded with the required encoding. Return values that are single strings are decoded with errors=’replace’. Return values that are lists of strings are decoded with errors=’strict’ and elements that fail to be decoded are omitted from the returned list.
- _encoding¶
- _func¶
- _process_args(args, kwargs)¶
- class portage._unicode_module_wrapper(mod, encoding='utf_8', overrides=None, cache=True)¶
Bases:
object
Wraps a module and wraps all functions with _unicode_func_wrapper.
- _cache¶
- _encoding¶
- _mod¶
- _overrides¶
- portage.abssymlink(symlink, target=None)¶
This reads symlinks, resolving the relative symlinks, and returning the absolute. :param symlink: path of symlink (must be absolute) :param target: the target of the symlink (as returned
by readlink)
- Return type
str
- Returns
the absolute path of the symlink target
- portage.create_trees(config_root=None, target_root=None, trees=None, env=None, sysroot=None, eprefix=None)¶
- portage.eapi_is_supported(eapi)¶
- portage.getcwd()¶
this fixes situations where the current directory doesn’t exist
- portage.getpid()¶
Cached version of os.getpid(). ForkProcess updates the cache.
- portage.load_mod(name)¶
- portage.portageexit()¶