summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/depgraph.py
Commit message (Collapse)AuthorAgeFilesLines
...
* depgraph._add_pkg: preserve previous pkg depthZac Medico2012-06-171-0/+2
|
* depgraph: use package sets for rebuild/reinstallZac Medico2012-06-171-5/+21
|
* _process_slot_conflicts: do one slot at a timeZac Medico2012-06-161-36/+37
| | | | | This allows us to avoid redundant processing of slots that have already been processed by a previous call.
* depgraph: split out _handle_slot_conflict methodZac Medico2012-06-161-120/+129
|
* depgraph: simplify _select_pkg_highest_availableZac Medico2012-06-161-8/+0
| | | | | | This hunk of code is no longer needed since the content of _highest_pkg_cache is discarded each time a package is added to the graph.
* depgraph: _autounmask in _highest_pkg_cache keyZac Medico2012-06-161-1/+1
|
* Add USE + license autounmask for bug #420847.Zac Medico2012-06-151-2/+7
|
* depgraph: pass use_reduce result to dep_checkZac Medico2012-06-081-34/+24
| | | | This allows us to avoid extraneous use_reduce/paren_enclose calls.
* Use any() to optimize intersection operations.Zac Medico2012-05-301-18/+16
|
* _wildcard_set: specify allow_repo=FalseZac Medico2012-05-301-2/+2
| | | | | This make is behave as it did prior to the change in Atom constructor behavior in commit 587cce4816afc7d57b3edf0be6c0670ec0be89c9.
* depgraph: send output to stderr when appropriateZac Medico2012-05-141-70/+48
| | | | | | This also removes the stderr -> stdout redirect from display_problems, since the app-portage/autounmask program is no longer supported, and that will fix bug #406867.
* depgraph: minimize match_from_list operationsZac Medico2012-05-131-58/+64
| | | | | | In _iter_match_pkgs, call match_from_list on one cpv at a time, in order to avoid unnecessary match_from_list comparisons on versions that are never yielded from this method.
* Don't write or trust cache for unsupported EAPIs.Zac Medico2012-05-101-2/+0
| | | | | | Since we're supposed to be able to efficiently obtain the EAPI from _parse_eapi_ebuild_head, we don't need to write or trust cache entries for unsupported EAPIs.
* Show unsatisfied REQUIRED_USE for bug #415125.Zac Medico2012-05-091-4/+9
|
* composite_db._visible: fix AttributeErrorZac Medico2012-05-021-1/+1
|
* dbapi: account for unevaluated_atom in cachesZac Medico2012-04-201-2/+3
| | | | | This will fix bug 412391. This is analogous to the bug fixed in commit 5438bb29c996d777b6343515995176912a7c137f.
* depgraph._complete_graph: fix for --root-depsv2.2.0_alpha100Zac Medico2012-04-051-1/+2
|
* depgraph._validate_blockers: optimize --root-depsZac Medico2012-04-051-0/+5
|
* depgraph._load_vdb: optimize --root-depsZac Medico2012-04-051-0/+4
|
* emerge: suggest dispatch-conf for bug #398843Zac Medico2012-03-271-3/+3
|
* Replace @returns with @return.Zac Medico2012-03-271-3/+3
|
* Revert "depgraph: reset pkgsettings after setcpv"Zac Medico2012-03-191-1/+0
| | | | | | This reverts commit 884993c7f4b9e7e9ede690f5fab81742915fc942. Calling reset is expensive and is not really needed since commit 3ca5f0cc08d233a3e229e78b573c7aab7d46cb9c.
* depgraph: reset pkgsettings after setcpvZac Medico2012-03-191-0/+1
| | | | | This should prevent doebuild_environment from incorrectly using the CATEGORY from the previous setcpv call, as reported in bug #408817.
* autounmask: Avoid unmasking live versions if possibleSebastian Luther2012-02-261-8/+25
| | | | | | | | | | | | | | | | | | | | Before this patch the allowed changes were: 1. USE 2. USE + ~arch + license 3. USE + ~arch + license + missing keywords + masks With this patch: 1. USE 2. USE + ~arch + license 3. USE + ~arch + license + missing keywords 4. USE + ~arch + license + masks 5. USE + ~arch + license + missing keywords + masks This avoids unmasking live versions, which are typically masked and have missing keywords to be avoided if there is a regular masked version available.
* Reorganize how autounmask allows changes to be madeSebastian Luther2012-02-261-52/+57
| | | | This patch does not change emerge's behaviour.
* autounmask: Fix USE change messages to display the correct parentSebastian Luther2012-02-241-0/+4
| | | | Fixes bug 399863.
* display_autounmask: highlight config changesZac Medico2012-02-101-4/+12
| | | | | | As suggested here: http://archives.gentoo.org/gentoo-dev/msg_06a47ad55977f4d16bfe18769c6c38b8.xml
* Fix --changed-use interaction with bug 297549.Zac Medico2012-01-201-8/+16
| | | | | | | | The automatic --binpkg-respect-use code (from bug #297549) was inappropriately overriding --changed-use and triggering behavior like --newuse, as reported here: http://archives.gentoo.org/gentoo-dev/msg_6070ab87737d7e16a5cec2a72c9111fd.xml
* depgraph: account for unevaluated_atom in cacheZac Medico2012-01-121-1/+1
|
* depgraph: unevaluated parent atom in debug outputZac Medico2012-01-121-2/+5
|
* depgraph.py: remove unused variablesZac Medico2011-12-231-3/+1
|
* Display EROOT when ROOT != "/".Zac Medico2011-12-191-5/+5
| | | | | | | Since commit a715b65f7bd36409c1283e6911265d1f4405ab7a, the Package.root and RootConfig.root attributes refer to EROOT instead of ROOT. Therefore, adjust display code so that EROOT is only displayed when ROOT != "/".
* Fix some warnings found by pylint.Arfrever Frehtes Taifersar Arahesis2011-12-181-35/+10
|
* _show_unsatisfied_dep: avoid invalid, bug #394995Zac Medico2011-12-171-3/+11
|
* fix logic from last commitZac Medico2011-12-041-1/+2
|
* depgraph: fix case insensitive search for unsatZac Medico2011-12-041-3/+11
| | | | | | | This fixes an interaction between the code from commits 9ce6da43ab90c4dab97ebf3b8339e5dbc113a0a8 and cbe44d92ff13b8a22f5b4215b73078ce600c6bf4, so that we don't discard matches that are identical except for differnces in upper/lower case.
* _get_dep_chain: fix KeyError, bug #392059Zac Medico2011-11-271-13/+22
| | | | | | | This fixes a regression since commit 57cc4e3e8991e7c4394d1dff7698aa62ed2a286b, which make a faulty assumption that the digraph contained all of the edges contained in parent_atoms.
* depgraph: don't merge portage asapZac Medico2011-11-171-9/+0
| | | | | There's no need to do this anymore, because we don't restart since commit d3f704a425a50b5cfa997a25866929b30f1b7d0f.
* Skip the "resume after portage update" routine.Zac Medico2011-11-171-2/+0
| | | | | | | Instead, finish the whole job using a copy of the currently running instance. This allows us to avoid the complexities of emerge --resume, such as the differences in option handling between different portage versions, as reported in bug #390819.
* Use get(REQUIRED_USE) for emphasis.Zac Medico2011-11-091-3/+3
| | | | | None of these cases should raise KeyError, but use get(REQUIRED_USE) anyway to emphasize that care must be taken.
* depgraph: fix possible REQUIRED_USE KeyErrorZac Medico2011-11-081-1/+1
| | | | This goes with commit a0961708ced50c90497811058eda6f4513d2986d.
* depgraph._queue_disjunctive_deps(): Pass EAPI to portage.dep.Atom().Arfrever Frehtes Taifersar Arahesis2011-11-071-1/+1
|
* REQUIRED_USE: don't save in built packagesZac Medico2011-11-071-1/+1
| | | | | | | It should be safe to assume that REQUIRED_USE is satisfied if the package is built, so it's a waste to save it. Also, fix code which assumes that built Package instances have a REQUIRED_USE key in their metadata.
* Respect --usepkgonly in suggestions, bug #389617Zac Medico2011-11-061-1/+2
|
* Use EROOT to validate path arguments.Zac Medico2011-10-281-4/+4
|
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-251-14/+15
| | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty.
* depgraph: fix installed masked warningZac Medico2011-10-201-7/+8
| | | | | This warning has been broken since commit 5f65c2294df592a6a4e0f0fff0bedec49ed3491a.
* Add emerge --dynamic-deps <y|n> option.Zac Medico2011-10-101-3/+10
| | | | | | | | | | | | | This makes it possible to disable the dynamic dependency updates that FakeVartree performs by default. WARNING: If --dynamic-deps is disabled, then it is necessary to ensure that an alternative method is used to handle package moves in dependencies of installed packages. Normally, this is handled by FEATURES="fixpackages", which is enabled by default and may be disabled via make.conf(5). Alternatively, in order to manually apply package moves, run `emaint --fix moveinst` after each emerge --sync operation (see emaint(1)).
* show_ignored_binaries: filter noise, bug #386379Zac Medico2011-10-091-0/+26
|
* Prefer slot conflict over blocker display.Zac Medico2011-10-021-5/+6
| | | | | | | | The slot conflict display has better noise reduction than the unsatisfied blockers display, so skip unsatisfied blockers display if there are slot conflicts (see bug #385391). Note that this reverses the logic from bug 159310, since the slot conflict display has evolved a lot since then.