summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/depgraph.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* depgraph: tweak virtual transition codeZac Medico2011-09-301-5/+5
| | | | | | This fixes a false --binpkg-respect-use warning that's triggered by erroneous USE/IUSE comparison between the new-style virtual and an old-style virtual match.
* depgraph: pull in new-style virtuals moreZac Medico2011-09-301-0/+6
| | | | | | | This causes new-style virtuals to get pulled in for virtuals that are already satisfied by installed old-style virtuals. This case is common, due to PROVIDE being (removed without revision bump) from lots of ebuilds.
* tweak "missed updates" code from last commitZac Medico2011-09-281-3/+3
|
* depgraph: verify "missed updates"Zac Medico2011-09-281-0/+4
| | | | | | Since the change involving slot conflict parent atoms in commit 6cea2091526659521d35be6c8dc7733f69f1a760, we want to check to make sure we don't display any false positives in the "missed updates".
* depgraph: handle unicode exception for bug 384749Zac Medico2011-09-271-2/+3
|
* Fix a typo.Arfrever Frehtes Taifersar Arahesis2011-09-231-1/+1
|
* Tweak automatic --binpkg-respect-use behavior.Zac Medico2011-09-211-3/+6
| | | | | | | | If --binpkg-respect-use is not explicitly specified, we enable the behavior automatically (like requested in bug #297549), as long as it doesn't strongly conflict with other options that have been specified. Strongly conflicting options currently include --usepkgonly and --rebuilt-binaries.
* Make --binpkg-respect-use=y the defaultSebastian Luther2011-09-211-4/+6
| | | | | Explicitly stating --binpkg-respect-use=y will disable the ignored binary warning. This will fix bug #297549.
* Warn about ignored binary packages with non matching USESebastian Luther2011-09-211-3/+44
|
* emerge: add --complete-graph-if-new-ver < y | n >Zac Medico2011-09-211-12/+10
| | | | | Trigger the --complete-graph behavior if an installed package version will change (upgrade or downgrade). This option is enabled by default.
* autounmask: Always use unresticted atoms for license and USE changesSebastian Luther2011-09-211-14/+8
| | | | See bug 379333.
* Reject inconsistent backtrack parametersSebastian Luther2011-09-201-5/+0
| | | | | | | If backtracking masks a package that caused another package to be masked, we declare this backtracking node as invalid. The backtracker should be able to find another node that gives a valid solution if one exists. This fixes bug 375573.
* Suggest --autounmask-keep-masks for ** keyword.Zac Medico2011-09-191-2/+5
|
* Suggest --autounmask-keep-masks instead of --autounmask=nSebastian Luther2011-09-191-7/+3
| | | | | | | Currently emerge suggests --autounmask=n if any configuration change is proposed. With this patch it will print a suggestion only for mask changes, as these are the changes people complain most about. It will suggest --autounmask-keep-masks in this case.
* autounmask: Add --autounmask-keep-masks optionSebastian Luther2011-09-191-1/+3
| | | | | | Disables creation of p.unmask entries to allow users to insist on their masks and hope for another conflict resolution (i.e. missed update). This fixes bug 372485.
* autounmask: Add --autounmask-unrestricted-atoms optionSebastian Luther2011-09-191-16/+30
| | | | | | | | The default behavior of --autounmask is now changed back to the original one, namely to use '=' operators. The --autounmask-unrestricted-atoms option allows the use of '>=' operators whenever possible. This addresses the issues raised in bugs 372405, 374331 and 379333.
* get_dep_chain: fix KeyError if start_node is rootZac Medico2011-09-181-1/+1
|
* autounmask: Ensure a suitable parent is displayed in the dep chainSebastian Luther2011-09-181-1/+33
| | | | Fixes bug 375265.
* depclean: don't remove new virtual slotsZac Medico2011-09-181-1/+2
| | | | | | | This provides depclean symmetry with the change in update behavior from commit b95cbb6b78ad6d9b8e2d3edc5fafff122c3ce7c5, so that new virtual slots won't be removed by depclean immediately after they have been pulled in.
* Fix multislot handling for depclean (bug #382823)Zac Medico2011-09-141-4/+14
|
* depgraph: pull in new virtual slots with --updateZac Medico2011-09-111-11/+58
| | | | | | | | This re-implements the fix from commit 21330075f07248765016e104b3ba8216903f1ecb, without introducing the unwanted behavior reported in bug 382557. This involves checking the direct dependencies of virtual slot updates to make sure they are all visible, before pulling them in.