|
|
__init__(self,
settings,
trees,
myopts,
myparams,
spinner,
frozen_config=None,
backtrack_parameters=BacktrackParameter(),
allow_backtracking=False)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
| _dynamic_deps_preload(self,
fake_vartree,
fakedb) |
source code
|
|
|
|
|
|
|
_show_ignored_binaries(self)
Show binaries that have been ignored because their USE didn't match
the user's config. |
source code
|
|
|
|
|
|
|
|
|
|
| _show_missed_update_unsatisfied_dep(self,
missed_updates) |
source code
|
|
|
|
| _show_missed_update_slot_conflicts(self,
missed_updates) |
source code
|
|
|
|
|
|
|
_process_slot_conflicts(self)
If there are any slot conflicts and backtracking is enabled,
_complete_graph should complete the graph before this method is
called, so that all relevant reverse dependencies are available for
use in backtracking decisions. |
source code
|
|
|
|
|
|
|
| _slot_confict_backtrack(self,
root,
slot_atom,
all_parents,
conflict_pkgs) |
source code
|
|
|
|
_slot_conflict_backtrack_abi(self,
pkg,
slot_nodes,
conflict_atoms)
If one or more conflict atoms have a slot/sub-slot dep that can be
resolved by rebuilding the parent package, then schedule the rebuild
via backtracking, and return True. |
source code
|
|
|
bool
|
_slot_change_probe(self,
dep)
Returns:
True if dep.child should be rebuilt due to a change in sub-slot
(without revbump, as in bug #456208). |
source code
|
|
|
|
| _slot_change_backtrack(self,
dep,
new_child_slot) |
source code
|
|
|
|
| _slot_operator_update_backtrack(self,
dep,
new_child_slot=None,
new_dep=None) |
source code
|
|
|
|
| _slot_operator_update_probe_slot_conflict(self,
dep) |
source code
|
|
|
|
_slot_operator_update_probe(self,
dep,
new_child_slot=False,
slot_conflict=False,
autounmask_level=None)
slot/sub-slot := operators tend to prevent updates from getting pulled in,
since installed packages pull in packages with the slot/sub-slot that they
were built against. |
source code
|
|
|
|
| _slot_operator_unsatisfied_probe(self,
dep) |
source code
|
|
|
|
| _slot_operator_unsatisfied_backtrack(self,
dep) |
source code
|
|
|
|
_downgrade_probe(self,
pkg)
Detect cases where a downgrade of the given package is considered
desirable due to the current version being masked or unavailable. |
source code
|
|
|
|
|
|
|
_iter_similar_available(self,
graph_pkg,
atom,
autounmask_level=None)
Given a package that's in the graph, do a rough check to see if a
similar package is available to install. |
source code
|
|
|
|
|
|
|
_slot_operator_trigger_reinstalls(self)
Search for packages with slot-operator deps on older slots, and
schedule rebuilds if they can link to a newer slot that's in the
graph. |
source code
|
|
|
|
_reinstall_for_flags(self,
pkg,
forced_flags,
orig_use,
orig_iuse,
cur_use,
cur_iuse)
Return a set of flags that trigger reinstallation, or None if there
are no such flags. |
source code
|
|
|
|
| _create_graph(self,
allow_unsatisfied=False) |
source code
|
|
|
Iterable
|
_expand_set_args(self,
input_args,
add_to_digraph=False)
Iterate over a list of DependencyArg instances and yield all
instances given in the input together with additional SetArg
instances that are generated from nested sets. |
source code
|
|
|
|
| _add_dep(self,
dep,
allow_unsatisfied=False) |
source code
|
|
|
|
|
|
|
_add_pkg(self,
pkg,
dep)
Adds a package to the depgraph, queues dependencies, and handles slot
conflicts. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| _add_pkg_deps(self,
pkg,
allow_unsatisfied=False) |
source code
|
|
|
|
| _add_pkg_dep_string(self,
pkg,
dep_root,
dep_priority,
dep_string,
allow_unsatisfied) |
source code
|
|
|
|
| _wrapped_add_pkg_dep_string(self,
pkg,
dep_root,
dep_priority,
dep_string,
allow_unsatisfied) |
source code
|
|
|
|
_minimize_children(self,
parent,
priority,
root_config,
atoms)
Selects packages to satisfy the given atoms, and minimizes the number
of selected packages. |
source code
|
|
|
|
_queue_disjunctive_deps(self,
pkg,
dep_root,
dep_priority,
dep_struct)
Queue disjunctive (virtual and ||) deps in
self._dynamic_config._dep_disjunctive_stack. |
source code
|
|
|
|
| _queue_disjunction(self,
pkg,
dep_root,
dep_priority,
dep_struct) |
source code
|
|
|
|
_pop_disjunction(self,
allow_unsatisfied)
Pop one disjunctive dep from
self._dynamic_config._dep_disjunctive_stack, and use it to populate
self._dynamic_config._dep_stack. |
source code
|
|
|
|
|
|
list
|
_dep_expand(self,
root_config,
atom_without_category)
Returns:
a list of atoms containing categories (possibly empty) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_select_files(self,
myfiles)
Given a list of .tbz2s, .ebuilds sets, and deps, populate
self._dynamic_config._initial_arg_list and call self._resolve to
create the appropriate depgraph and return a favorite list. |
source code
|
|
|
|
|
|
|
_resolve(self,
myfavorites)
Given self._dynamic_config._initial_arg_list, pull in the root nodes,
call self._creategraph to process theier deps and return a favorite
list. |
source code
|
|
|
|
_set_args(self,
args)
Create the "__non_set_args__" package set from atoms and
packages given as arguments. |
source code
|
|
|
|
_greedy_slots(self,
root_config,
atom,
blocker_lookahead=False)
Return a list of slot atoms corresponding to installed slots that
differ from the slot of the highest visible match. |
source code
|
|
|
|
_select_atoms_from_graph(self,
*pargs,
**kwargs)
Prefer atoms matching packages that have already been added to the
graph or those that are installed and have not been scheduled for
replacement. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_get_dep_chain(self,
start_node,
target_atom=None,
unsatisfied_dependency=False)
Returns a list of (atom, node_type) pairs that represent a dep chain. |
source code
|
|
|
|
| _get_dep_chain_as_comment(self,
pkg,
unsatisfied_dependency=False) |
source code
|
|
|
|
_show_unsatisfied_dep(self,
root,
atom,
myparent=None,
arg=None,
check_backtrack=False,
check_autounmask_breakage=False,
show_req_use=None)
When check_backtrack=True, no output is produced and the method
either returns or raises _backtrack_mask if a matching package has
been masked by backtracking. |
source code
|
|
|
|
| _iter_match_pkgs_any(self,
root_config,
atom,
onlydeps=False) |
source code
|
|
|
|
_iter_match_pkgs(self,
root_config,
pkg_type,
atom,
onlydeps=False)
Iterate over Package instances of pkg_type matching the given atom. |
source code
|
|
|
|
| _select_pkg_highest_available(self,
root,
atom,
onlydeps=False) |
source code
|
|
|
|
_want_installed_pkg(self,
pkg)
Given an installed package returned from select_pkg, return True if
the user has not explicitly requested for this package to be replaced
(typically via an atom on the command line). |
source code
|
|
|
|
| _equiv_ebuild_visible(self,
pkg,
autounmask_level=None) |
source code
|
|
|
|
|
|
|
|
|
|
| _select_pkg_highest_available_imp(self,
root,
atom,
onlydeps=False) |
source code
|
|
|
|
| _pkg_visibility_check(self,
pkg,
autounmask_level=None,
trust_graph=True) |
source code
|
|
|
|
_pkg_use_enabled(self,
pkg,
target_use=None)
If target_use is None, returns pkg.use.enabled + changes in
_needed_use_config_changes. |
source code
|
|
|
|
| _wrapped_select_pkg_highest_available_imp(self,
root,
atom,
onlydeps=False,
autounmask_level=None) |
source code
|
|
|
|
_select_pkg_from_graph(self,
root,
atom,
onlydeps=False)
Select packages that have already been added to the graph or those
that are installed and have not been scheduled for replacement. |
source code
|
|
|
|
_select_pkg_from_installed(self,
root,
atom,
onlydeps=False)
Select packages that are installed. |
source code
|
|
|
|
_complete_graph(self,
required_sets=None)
Add any deep dependencies of required sets (args, system, world) that
have not been pulled into the graph yet. |
source code
|
|
|
|
_pkg(self,
cpv,
type_name,
root_config,
installed=False,
onlydeps=False,
myrepo=None)
Get a package instance from the cache, or create a new one if
necessary. |
source code
|
|
|
|
|
|
|
|
|
|
_merge_order_bias(self,
mygraph)
For optimal leaf node selection, promote deep system runtime deps and
order nodes from highest to lowest overall reference count. |
source code
|
|
|
|
|
|
|
_implicit_libc_deps(self,
mergelist,
graph)
Create implicit dependencies on libc, in order to ensure that libc is
installed as early as possible (see bug #303567). |
source code
|
|
|
|
schedulerGraph(self)
The scheduler graph is identical to the normal one except that
uninstall edges are reversed in specific cases that require
conflicting packages to be temporarily installed simultaneously. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
display(self,
mylist,
favorites=[],
verbosity=None) |
source code
|
|
|
|
|
|
|
|
|
|
saveNomergeFavorites(self)
Find atoms in favorites that are not in the mergelist and add them to
the world file if necessary. |
source code
|
|
|
|
_loadResumeCommand(self,
resume_data,
skip_masked=True,
skip_missing=True)
Add a resume command to the graph and validate it in the process. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|