summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
...
* In depgraph._complete_graph(), use cached Package instances insteadZac Medico2008-05-021-7/+2
| | | | | | of constructing new ones. svn path=/main/trunk/; revision=10096
* Validate resume list data some more.Zac Medico2008-05-021-1/+1
| | | | svn path=/main/trunk/; revision=10094
* Clean up merge list handling:Zac Medico2008-05-021-52/+26
| | | | | | | | | | | | | | | * In depgraph.loadResumeCommand(), populate _serialized_tasks_cache so that it can be returned from depgraph.altlist(). * Handle --skipfirst instide depgraph.loadResumeCommand(), and fix it to skip the first "merge" task and never skip "uninstall" tasks. * Always get the merge list from depgraph.altlist() instead of using the mtimedb directly. The list returned from depgraph.altlist() contains Package instances with cached metadata. * Remove obsolete code from depgraph.display() and MergeTask.merge() since the merge list always comes from depgraph.altlist() now, and never directly from the mtimedb. svn path=/main/trunk/; revision=10092
* v2 of FEATURES=preserved-libs, using LinkageMap instead of the now removed ↵Marius Mauch2008-05-021-0/+1
| | | | | | LibraryPackageMap class svn path=/main/trunk/; revision=10081
* do not consider sets to be installed that are about to be unmergedMarius Mauch2008-05-021-1/+2
| | | | svn path=/main/trunk/; revision=10080
* move cleaning of sets out of package loopMarius Mauch2008-05-021-2/+3
| | | | svn path=/main/trunk/; revision=10079
* properly remove sets from 'world' when unmergingMarius Mauch2008-05-021-0/+2
| | | | svn path=/main/trunk/; revision=10078
* add config option for package sets to not be recorded in 'world'Marius Mauch2008-05-021-1/+1
| | | | svn path=/main/trunk/; revision=10077
* Fix broken variable references found by pyflakes.Zac Medico2008-05-021-4/+2
| | | | svn path=/main/trunk/; revision=10072
* Fix variable rename breakage: pkg -> pkg.cpvZac Medico2008-05-011-1/+1
| | | | svn path=/main/trunk/; revision=10065
* When adding blockers for installed packages to the graph, use cachedZac Medico2008-05-011-22/+14
| | | | | | Package instances instead of constructing new ones. svn path=/main/trunk/; revision=10062
* Sort blockers when caching them.Zac Medico2008-05-011-0/+1
| | | | svn path=/main/trunk/; revision=10054
* Don't add blockers to the graph more times than necessary.Zac Medico2008-05-011-0/+1
| | | | svn path=/main/trunk/; revision=10052
* * Add a Package.operation attribute and use it to distinguish "uninstall"Zac Medico2008-05-011-37/+27
| | | | | | operations. svn path=/main/trunk/; revision=10050
* Handle a KeyError when validating the blocker cache.Zac Medico2008-04-301-1/+6
| | | | svn path=/main/trunk/; revision=10045
* Fix broken comparison, compare with None instead of nonzero.Zac Medico2008-04-301-1/+1
| | | | svn path=/main/trunk/; revision=10043
* Fix logic to re-use blockers from the graph when populating the blocker cache.Zac Medico2008-04-301-0/+5
| | | | svn path=/main/trunk/; revision=10042
* * Fix dep_check() so that it doesn't expand virtual blockers since theZac Medico2008-04-301-11/+72
| | | | | | | | | | | | | | | | un-expanded virtual atom is more useful for maintaining a cache of blocker atoms. * Expand virtual blockers in depgraph.validate_blockers(), since it's not done by dep_check() anymore. * If blocker data from the graph is available, use it to validate the blocker cache and update the cache if it seems invalid. * Make BlockerCache._load() more tolerant to installs/uninstalls so so that cache isn't rebuilt every time. svn path=/main/trunk/; revision=10041
* Fix "deep" logic in depgraph._complete_graph() so that it alwaysZac Medico2008-04-301-2/+4
| | | | | | properly recognizes whether or not "deep" was previously enabled. svn path=/main/trunk/; revision=10039
* Make unmerge() group packages by cat/pn when the order doesn't matter, soZac Medico2008-04-291-8/+30
| | | | | | the display appears like earlier versions of portage. svn path=/main/trunk/; revision=10037
* Prevent some more visible downgrades from possibly being missed (bug #219369).Zac Medico2008-04-291-1/+4
| | | | svn path=/main/trunk/; revision=10035
* Prevent some more visible downgrades from possibly being missed (bug #219369).Zac Medico2008-04-291-1/+4
| | | | svn path=/main/trunk/; revision=10034
* Handle a potential KeyError in depgraph.display() when in --resume modeZac Medico2008-04-281-4/+15
| | | | | | and a package scheduled for uninstall is no longer installed. svn path=/main/trunk/; revision=10032
* When a package scheduled for uninstall isn't installed anymore, moveZac Medico2008-04-281-4/+12
| | | | | | on to the next task. svn path=/main/trunk/; revision=10030
* Fix spelling.Zac Medico2008-04-281-1/+1
| | | | svn path=/main/trunk/; revision=10028
* Add a Package.pv_split attibute to optimize version comparisonZac Medico2008-04-281-17/+10
| | | | | | operators. svn path=/main/trunk/; revision=10026
* Add comma to ("__weakref__",) so that it's a tuple instead of a string.Zac Medico2008-04-281-1/+1
| | | | | | Thanks to ferringb. svn path=/main/trunk/; revision=10020
* Fix PackageVirtualDbapi.cpv_inject() to make sure packages with duplicateZac Medico2008-04-281-0/+6
| | | | | | cpv or slot are handled correctly. svn path=/main/trunk/; revision=10014
* Add missing slot comparison when looking for higher slot inZac Medico2008-04-281-2/+3
| | | | | | _iter_atoms_for_pkg(). svn path=/main/trunk/; revision=10008
* Bug #218854 - Fix depgraph._iter_atoms_for_pkg() so that argument atomsZac Medico2008-04-281-8/+58
| | | | | | only match the highest visible slot. svn path=/main/trunk/; revision=10007
* * Remove the only remaining sys.exit() calls inside the depgraph class.Zac Medico2008-04-271-5/+9
| | | | | | * Fix _unknown_internal_error() to work with zero arguments. svn path=/main/trunk/; revision=10005
* Never uninstall sys-apps/portage except through replacement.Zac Medico2008-04-271-0/+4
| | | | svn path=/main/trunk/; revision=10003
* Bug #219369 - Enable automatic upgrage or downgrade to a versionZac Medico2008-04-271-0/+20
| | | | | | | | with visible KEYWORDS when the installed version is masked by KEYWORDS, but never reinstall the same exact version only due to a KEYWORDS mask. svn path=/main/trunk/; revision=10001
* Take the classes that initialize variables in __slots__ with keywordZac Medico2008-04-271-42/+31
| | | | | | | constructor arguments and make them all derive from a new SlotObject class. svn path=/main/trunk/; revision=9994
* Create a digraph.difference_update() method and use it to amortize theZac Medico2008-04-271-6/+10
| | | | | | cost of removing nodes from the digraph.order list. svn path=/main/trunk/; revision=9992
* Remove unnecessary "mydbapi" variable in depgraph.display().Zac Medico2008-04-271-14/+3
| | | | svn path=/main/trunk/; revision=9990
* Bug #172812 - When a package needs to be uninstalled in advance ratherZac Medico2008-04-271-24/+77
| | | | | | | | | | | than through replacement, show the corresponding [blocks] entries in the displayed list. In order to show more structure in the --tree display, expand Package -> Uninstall edges into Package -> Blocker -> Uninstall edges. Also, create edges between a package's own blockers and it's Uninstall task since it's blockers become irrelevant as soon as it's uninstalled. svn path=/main/trunk/; revision=9983
* Add a PackageVirtualDbapi.copy() method.Zac Medico2008-04-261-0/+9
| | | | svn path=/main/trunk/; revision=9982
* Use digraphs to clean up blocker reference counting in the depgraph.Zac Medico2008-04-261-45/+47
| | | | svn path=/main/trunk/; revision=9981
* Don't assume that altlist() will succeed inside display_problems().Zac Medico2008-04-261-1/+1
| | | | svn path=/main/trunk/; revision=9980
* * Add a Blocker class to use instead of tuples.Zac Medico2008-04-261-5/+24
| | | | | | | * Fix the Task constructor to properly traverse __slots__ of all inherited classes. svn path=/main/trunk/; revision=9979
* Refactor the way that depgraph.altlist(), _complete_graph(), andZac Medico2008-04-251-28/+22
| | | | | | | validate_blockers() interact with eachother. This simplifies things by eliminating the need for recursive calls to validate_blockers(). svn path=/main/trunk/; revision=9977
* Add some more spinner.update() calls in possibly time consuming loops.Zac Medico2008-04-251-0/+4
| | | | svn path=/main/trunk/; revision=9968
* Bug #172812 - If any Uninstall tasks need to be executed in orderZac Medico2008-04-251-58/+108
| | | | | | | | to avoid a conflict, complete the graph with any dependencies that may have been initially neglected (to ensure that unsafe Uninstall tasks are properly identified and blocked from execution). svn path=/main/trunk/; revision=9965
* Update description of "complete" depgraph param.Zac Medico2008-04-241-3/+1
| | | | svn path=/main/trunk/; revision=9964
* Rename the "consistent" depgraph parameter to "complete" since what itZac Medico2008-04-241-5/+5
| | | | | | | really means is that the graph will be complete in the sense that no known dependencies are neglected. svn path=/main/trunk/; revision=9963
* Fix interaction between automatic uninstall and options like --pretend,Zac Medico2008-04-241-1/+3
| | | | | | --fetchonly, and --buildpkgonly. svn path=/main/trunk/; revision=9956
* Handle potential InvalidDependString exceptions when match packages toZac Medico2008-04-241-14/+21
| | | | | | system and world atoms in depgraph.altlist(). svn path=/main/trunk/; revision=9955
* Fix broken mtimedb resume list handling for automatic uninstall tasks.Zac Medico2008-04-241-5/+7
| | | | svn path=/main/trunk/; revision=9954
* Combine --nodeps spinner logic.Zac Medico2008-04-241-5/+4
| | | | svn path=/main/trunk/; revision=9953