summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* Improve lookahead for new-style virtuals:Zac Medico2008-04-131-9/+30
| | | | | | | | | | | | | | | | | * Substitue the graph tree for the vartree in dep_check() since we want atom selections to be consistent with package selections have already been made. * Add the selected package to the graph as soon as possible so that later dep_check() calls can use it as feedback for making more consistent atom selections. * Expand all slots of new-style virtuals inside _dep_check_composite_db so that lookahead examines a matched slots. This solves some cases of bug #1343, and extends the fix for bug #141118 to work in cases when a virtual is not yet installed but it has been pulled into the graph. svn path=/main/trunk/; revision=9873
* Fix the _dep_check_composite_db visibility filtering some more.Zac Medico2008-04-131-9/+18
| | | | svn path=/main/trunk/; revision=9872
* Fix _dep_check_composite_db.match() so that it doesn't exempt the highestZac Medico2008-04-131-3/+0
| | | | | | slot from visibility checks. svn path=/main/trunk/; revision=9871
* Make _dep_check_composite_db match() return multiple slots so thatZac Medico2008-04-131-15/+36
| | | | | | | it behaves more like other dbapi instances would, and also make it inherit from dbapi. svn path=/main/trunk/; revision=9870
* In --buildpkgonly mode, don't discard RDEPEND and PDEPEND if --empty orZac Medico2008-04-131-4/+6
| | | | | | | --deep are enabled. The makes it possible to run `emerge -eB world` and have every single package rebuilt (without actually installing anything). svn path=/main/trunk/; revision=9860
* Rename the undocumented --conistent option to --complete-graph and addZac Medico2008-04-112-4/+17
| | | | | | some docs. svn path=/main/trunk/; revision=9846
* Tweak --buildpkgonly and fakeroot logic so that --buildpkgonly can beZac Medico2008-04-111-6/+11
| | | | | | used by a non-root user to build binary packages with fakeroot. svn path=/main/trunk/; revision=9825
* Nest the DepcheckCompositeDB class inside the depgraph class since it'sZac Medico2008-04-101-86/+86
| | | | | | not intended for use elsewhere. svn path=/main/trunk/; revision=9823
* Rename variable pkg_cpv to pkg_str.Zac Medico2008-04-101-7/+7
| | | | svn path=/main/trunk/; revision=9821
* Fix "pkg" variable name collisions in depgraph.display().Zac Medico2008-04-101-13/+12
| | | | svn path=/main/trunk/; revision=9819
* Make the CHOST visibility check tolerant of missing CHOST metadata.Zac Medico2008-04-101-7/+9
| | | | svn path=/main/trunk/; revision=9817
* Remove an unused function.Zac Medico2008-04-101-11/+0
| | | | svn path=/main/trunk/; revision=9810
* Implement expansion of catgories in DepcheckCompositeDB.match() for oldZac Medico2008-04-101-1/+42
| | | | | | installed packages that may contain atoms that are not fully qualified. svn path=/main/trunk/; revision=9808
* Iterate over a copy of the digraph nodes so that removal can't breakZac Medico2008-04-101-2/+2
| | | | | | the iterator. svn path=/main/trunk/; revision=9799
* Make sure that everything except Package nodes is ignored when doingZac Medico2008-04-101-4/+12
| | | | | | the --buildpkgonly digraph.hasallzeros() check. svn path=/main/trunk/; revision=9797
* Use cached Package instances in depgraph.display().Zac Medico2008-04-101-11/+4
| | | | svn path=/main/trunk/; revision=9794
* * Make depclean/prune use cached Package instances for visibility checks.Zac Medico2008-04-101-4/+18
| | | | | | | | | * Make FakeVartree wrap dbapi.match() to make sure the metadata in Package instances gets updated for any cpv that is returned from a match() call, since the metadata can be accessed directly from the Package instance instead of via aux_get(). svn path=/main/trunk/; revision=9789
* Make FakeVartree use PackageVirtualDbapi instead of fakedbapi so that it canZac Medico2008-04-101-7/+23
| | | | | | populate and utilize a cache of Package instances. svn path=/main/trunk/; revision=9788
* Improve used of cached Package instances in depgraph._select_pkg_from_graph().Zac Medico2008-04-101-13/+4
| | | | svn path=/main/trunk/; revision=9787
* Replace the fakdbapi class that is used to track depgraph state with aZac Medico2008-04-101-18/+103
| | | | | | | | similar PackageVirtualDbapi class that uses Package instances internally. This eliminates some redundancy since the Package instances can be reused elsewhere, unlike the internal data structures used by fakedbapi. svn path=/main/trunk/; revision=9786
* Add some docs for the DepcheckCompositeDB class.Zac Medico2008-04-091-0/+7
| | | | svn path=/main/trunk/; revision=9785
* When checking atoms without categories against the installed packages, justZac Medico2008-04-091-2/+3
| | | | | | check for existence of the cat/pn rather that a full match. svn path=/main/trunk/; revision=9779
* Fix the docstring for depgraph._dep_expand().Zac Medico2008-04-091-1/+4
| | | | svn path=/main/trunk/; revision=9777
* Fix minor issues in the calculation of the number of parents omitted fromZac Medico2008-04-091-8/+5
| | | | | | the slot collision display. svn path=/main/trunk/; revision=9775
* When pruning the list of parents for the slot collision display, alwaysZac Medico2008-04-091-3/+12
| | | | | | | show parents that themselves have been pulled into collision slots, since those are more relevant that others. (branches/2.1.2 r9773) svn path=/main/trunk/; revision=9774
* Make DepcheckCompositeDB cache Package instances for aux_get() calls.Zac Medico2008-04-091-5/+4
| | | | svn path=/main/trunk/; revision=9771
* When depgraph.select_files() expands an atom category, in case of an old-styleZac Medico2008-04-091-2/+2
| | | | | | virtual, defer category expansion so that the depgraph has more choices. svn path=/main/trunk/; revision=9769
* Create a new depgraph._dep_expand() method for select_files() to expandZac Medico2008-04-091-35/+60
| | | | | | atoms that have no category. svn path=/main/trunk/; revision=9765
* Make depgraph.select_files() detect when a package name given as an argumentZac Medico2008-04-091-0/+23
| | | | | | | is ambiguous due to the existence of a new-style virtual with the same name (cpv_expand() will not always raise a ValueError in cases like this). svn path=/main/trunk/; revision=9762
* Split out a depgraph method to check if a specific new-style virtualZac Medico2008-04-081-9/+12
| | | | | | package exists. svn path=/main/trunk/; revision=9761
* Bug #197810 - Don't automatically downgrade packages for which availableZac Medico2008-04-081-3/+14
| | | | | | | | matching versions are masked by corruption, but do automatically downgrade installed packages that themselves have a valid mask such as from package.mask. svn path=/main/trunk/; revision=9756
* Fix --update greedy atoms logic so that it only pulls in packages thatZac Medico2008-04-081-1/+1
| | | | | | actually match the given atom. svn path=/main/trunk/; revision=9755
* Remove the depgraph._get_arg_for_pkg() method since _iter_atoms_for_pkg()Zac Medico2008-04-081-16/+3
| | | | | | does the job. svn path=/main/trunk/; revision=9745
* Remove unused iter_atoms() function.Zac Medico2008-04-081-15/+0
| | | | svn path=/main/trunk/; revision=9744
* * Optimize metadata caching in pordbapi and bindbapi so that cache isZac Medico2008-04-071-38/+41
| | | | | | | | never pulled for the same package twice. * Cache a Package instances constructed during package selection and reuse them during later package selections. svn path=/main/trunk/; revision=9741
* Move all the --update greedy slot logic to depgraph.select_files().Zac Medico2008-04-071-13/+6
| | | | svn path=/main/trunk/; revision=9738
* Move virtuals logic from DepcheckCompositeDB.match() toZac Medico2008-04-071-16/+15
| | | | | | | depgraph._iter_atoms_for_pkg() since it's more generally useful there. svn path=/main/trunk/; revision=9737
* Fix variable name collision in DepcheckCompositeDB.match().Zac Medico2008-04-061-2/+2
| | | | svn path=/main/trunk/; revision=9736
* Fix DepcheckCompositeDB.match() so that it doesn't assume that everyZac Medico2008-04-061-17/+5
| | | | | | DependencyArg instance has an "atom" attribute. svn path=/main/trunk/; revision=9735
* Rename the CompositDbapi class to DepcheckCompositeDB since it's reallyZac Medico2008-04-061-2/+2
| | | | | | | a special pupose class just for dep_check() and it doesn't implement the full dbapi interface. svn path=/main/trunk/; revision=9731
* Fix the CompositDbapi.match() logic wrt "selective" behavior and installedZac Medico2008-04-061-6/+15
| | | | | | | packages so that it correctly handles false argument matches due to PROVIDE when a corresponding new-style virtual exists. svn path=/main/trunk/; revision=9729
* Handle a potential InvalidDependString exception insideZac Medico2008-04-051-0/+2
| | | | | | CompositeDbapi.match(). svn path=/main/trunk/; revision=9720
* Bug #216328 - Fix broken --newuse reinstallation logic.Zac Medico2008-04-051-1/+4
| | | | svn path=/main/trunk/; revision=9718
* Fix the depgraph package selection cache to update the "existing node"Zac Medico2008-04-051-0/+8
| | | | | | | state of packages if they've been added to the graph since the last call. svn path=/main/trunk/; revision=9717
* Fix a typo.Zac Medico2008-04-051-1/+1
| | | | svn path=/main/trunk/; revision=9716
* Memoize package selection results in the depgraph for better performance.Zac Medico2008-04-051-1/+18
| | | | svn path=/main/trunk/; revision=9715
* Remove "selective" depgraph logic from dep_zapdeps() since it's nowZac Medico2008-04-051-2/+0
| | | | | | handled by CompositeDbapi. svn path=/main/trunk/; revision=9714
* Replace the depgraph's fakedbapi of visible packages with a newZac Medico2008-04-051-130/+34
| | | | | | | CompositeDbapi that is implemented on top of the depgraph's existing package selection logic. svn path=/main/trunk/; revision=9713
* Add missing "the" to fix grammar.Zac Medico2008-04-041-2/+2
| | | | svn path=/main/trunk/; revision=9710
* Adjust newlines whitespace masked packages display.Zac Medico2008-04-041-2/+2
| | | | svn path=/main/trunk/; revision=9706