summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/depgraph.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug #280336, comment #2 - Clear the package selection cache when packagesv2.1.7.10Zac Medico2009-12-031-0/+1
| | | | | | | are added to the graph. This fixes incorrect choices that happen in some cases. (trunk r14922) svn path=/main/branches/2.1.7/; revision=14924
* Bug #294945 - Fix blocker satistfied state handling inside depgraph, toZac Medico2009-11-281-4/+10
| | | | | | avoid a KeyError when displaying blockers. (trunk r14914) svn path=/main/branches/2.1.7/; revision=14917
* Revert r14901 since it doesn't solve the problem (bug #294945). (trunk r14913)Zac Medico2009-11-281-5/+1
| | | | svn path=/main/branches/2.1.7/; revision=14916
* Handle a KeyError in depgraph._ordered_tree_display(), reported on irc byZac Medico2009-11-271-1/+5
| | | | | | romildo. (trunk r14901) svn path=/main/branches/2.1.7/; revision=14906
* Bug #293614 - When the backtracking limit is reached and there is a SLOTZac Medico2009-11-251-0/+8
| | | | | | | conflict to display, hint that a larger --backtrack value might solve the conflict automatically. (trunk r14875) svn path=/main/branches/2.1.7/; revision=14888
* Optimized the code for bug #288083 and make it handle more cases. Now Packagev2.1.7.6Zac Medico2009-11-211-46/+33
| | | | | | | instances have 'visible' and 'masks' attributes, since this information needs to be accessed in more places now. (trunk r14859) svn path=/main/branches/2.1.7/; revision=14870
* Tweak logic from previous commit. (trunk r14858)Zac Medico2009-11-211-4/+4
| | | | svn path=/main/branches/2.1.7/; revision=14869
* In depgraph._serialize_tasks(), ensure that unsolvable blockers can't beZac Medico2009-11-211-1/+3
| | | | | | accidentally marked as satisfied. (trunk r14857) svn path=/main/branches/2.1.7/; revision=14868
* Fix blocker display to work properly with --tree --unordered-display.Zac Medico2009-11-211-10/+10
| | | | | | (trunk r14856) svn path=/main/branches/2.1.7/; revision=14867
* Fix depgraph._prune_tree_display() to preserve uninstall tasks. Thanks toZac Medico2009-11-211-1/+1
| | | | | | Jonathan Callen <abcd@g.o> for reporting. (trunk r14855) svn path=/main/branches/2.1.7/; revision=14866
* Bug #293730 - Fix bad || choices triggered in some cases insideZac Medico2009-11-211-1/+4
| | | | | | _dep_check_composite_db._visible() when --update is not enabled. (trunk r14854) svn path=/main/branches/2.1.7/; revision=14865
* Disable backtracking in the depgraph constructor call when appropriate.Zac Medico2009-11-211-1/+1
| | | | | | (trunk r14853) svn path=/main/branches/2.1.7/; revision=14864
* Check for updates masked by license for any installed packages that have beenZac Medico2009-11-211-2/+3
| | | | | | added to the graph (regardless of --deep or --complete-graph).. (trunk r14845) svn path=/main/branches/2.1.7/; revision=14861
* In the code from bug #288083, only show one LICENSE masking message per slot.Zac Medico2009-11-161-0/+4
| | | | | | (trunk r14823) svn path=/main/branches/2.1.7/; revision=14840
* Bug #288083 - Always warn about installed packages masked by license, sinceZac Medico2009-11-161-5/+50
| | | | | | | | the user likely wants to adjust ACCEPT_LICENSE. For updates masked by license, warn if --complete-graph or --deep is given, since otherwise it is likely a waste of time. (trunk r14822) svn path=/main/branches/2.1.7/; revision=14839
* When displaying masking messages, show the 'dependency required by' messageZac Medico2009-11-161-1/+7
| | | | | | before the masking docs message. (trunk r14802) svn path=/main/branches/2.1.7/; revision=14825
* Fix typo in comment. (trunk r14798)v2.1.7.4Zac Medico2009-11-071-1/+1
| | | | svn path=/main/branches/2.1.7/; revision=14799
* Use writemsg instead of print, to send debug messages to stderr. (trunk r14784)Zac Medico2009-11-071-5/+8
| | | | svn path=/main/branches/2.1.7/; revision=14797
* Bug #291142 - Fix some cases when a 'missed update' message might not beZac Medico2009-11-071-1/+14
| | | | | | displayed. (trunk r14780) svn path=/main/branches/2.1.7/; revision=14793
* Use writemsg instead of print, to send debug messages to stderr. (trunk r14779)Zac Medico2009-11-071-7/+12
| | | | svn path=/main/branches/2.1.7/; revision=14792
* Inside depgraph._complete_graph(), only pull in deps for the relevant rootZac Medico2009-11-071-0/+4
| | | | | | during remove operations. Thanks to acevery for reporting. (trunk r14775) svn path=/main/branches/2.1.7/; revision=14788
* Don't call FakeVartree.sync() redundantly when backtracking. (trunk r14774)Zac Medico2009-11-071-1/+4
| | | | svn path=/main/branches/2.1.7/; revision=14787
* Move FakeVartree population out of the constructor by calling the sync()Zac Medico2009-11-071-1/+5
| | | | | | | | method explicitly. This allows the depgraph constructor avoid populating the FakeVartree, and delay it until depgraph._load_vdb() is called. (trunk r14773) svn path=/main/branches/2.1.7/; revision=14786
* Fix --backtrack option handling. (trunk r14767)v2.1.7.3Zac Medico2009-10-311-1/+1
| | | | svn path=/main/branches/2.1.7/; revision=14768
* Add a --backtrack=COUNT option to control how many times backtracking isZac Medico2009-10-311-1/+1
| | | | | | allowed, and reduce the default from 30 to 5. (trunk r14763) svn path=/main/branches/2.1.7/; revision=14766
* Factor vdb loading code out of the depgraph constructor, since this procedureZac Medico2009-10-241-18/+44
| | | | | | | | is slow and it generates spinner output, which isn't very nice behavior for a constructor. Now it's called on-demand by various methods when necessary. (trunk r14705) svn path=/main/branches/2.1.7/; revision=14714
* Factor out duplicate "These are the packages that would be merged",Zac Medico2009-10-241-0/+62
| | | | | | "Calculating dependencies", and spinner cleanup code. (trunk r14704) svn path=/main/branches/2.1.7/; revision=14713
* Add a --unordered-display option for use with --tree. This allows the displayZac Medico2009-10-241-2/+37
| | | | | | | to be optimized differently since the merge order is not preserved. Thanks to Sebastian Mingramm (few) for the initial patch. (trunk r14703) svn path=/main/branches/2.1.7/; revision=14712
* Factor the --tree code out of depgraph.display(). (trunk r14702)Zac Medico2009-10-241-136/+146
| | | | svn path=/main/branches/2.1.7/; revision=14711
* Add support for display of nested sets in --depclean and --prune reverseZac Medico2009-10-191-5/+19
| | | | | | | | dependency output. This also fixes a bug from the 'selected' set changes which could cause the system set to be disregarded in some cases. (trunk r14680) svn path=/main/branches/2.1.7/; revision=14691
* Add a --use-ebuild-visibility option, for using unbuilt ebuild metadataZac Medico2009-10-191-1/+3
| | | | | | | in visibility checks for built ebuilds. Thanks to Sebastian Mingramm (few) for reporting the problem and testing the patch. (trunk r14665) svn path=/main/branches/2.1.7/; revision=14685
* Merge the internal package set changes from trunk r14614 (bug #266454). NoneZac Medico2009-10-181-10/+11
| | | | | | | of these changes should be noticeable to users. This is just to keep the diff relative to trunk as small as possible. svn path=/main/branches/2.1.7/; revision=14642
* TODO: Make resume_depgraph() return reasons for dropped_tasks, forZac Medico2009-10-181-0/+1
| | | | | | display/logging. (trunk r14611) svn path=/main/branches/2.1.7/; revision=14640
* Bug #289068 - Avoid KeyError: USE when depgraph calls _getMissingLicenses.Zac Medico2009-10-181-0/+3
| | | | | | (trunk r14610) svn path=/main/branches/2.1.7/; revision=14639
* Revert the rest of the package sets related code and docs, to behave like theZac Medico2009-10-101-1/+1
| | | | | | 2.1.6 branch. svn path=/main/branches/2.1.7/; revision=14549
* Fix _set module imports for rename, add hardcoded config for system and world,Zac Medico2009-10-101-2/+2
| | | | | | and remove unused sets code. svn path=/main/branches/2.1.7/; revision=14540
* Fix ugly 'Candidates' --debug output.Zac Medico2009-10-091-1/+5
| | | | svn path=/main/trunk/; revision=14535
* Fix "TabError: inconsistent use of tabs and spaces in indentation" with ↵Arfrever Frehtes Taifersar Arahesis2009-10-091-1/+1
| | | | | | Python 3 which was introduced in r14522. svn path=/main/trunk/; revision=14524
* Bug #271551 - Inside depgraph.select_files(), avoid bailing out due to anZac Medico2009-10-091-0/+12
| | | | | | | ambiguous package name in cases when all but one of the resolved packages are virtual. Thanks to Sebastian Mingramm (few) for this patch. svn path=/main/trunk/; revision=14522
* Bug #267468 - Display the total number of binary packages in the mergeZac Medico2009-10-091-0/+10
| | | | | | list. Thanks to Sebastian Mingramm (few) for this patch. svn path=/main/trunk/; revision=14520
* Bug #285832 - When updates are missed due to dependencies that have beenZac Medico2009-10-031-1/+44
| | | | | | | masked by backtracking, abbreviate output in order to avoid terminal flooding. svn path=/main/trunk/; revision=14476
* Bug #287333 - If posible, use ebuild from tree when checking for keyword maskZac Medico2009-10-021-7/+6
| | | | | | on installed packages. svn path=/main/trunk/; revision=14474
* Bug #287333 - Fix the code from bug #252167 so it behaves consistentlyZac Medico2009-10-021-4/+3
| | | | | | regardless of the package (ebuild or binpkg) being masked. svn path=/main/trunk/; revision=14472
* Fix breakage in file path -> package lookup code.Zac Medico2009-09-281-1/+1
| | | | svn path=/main/trunk/; revision=14455
* Bug #286522 - Check all portdbapi.findname return values in case itZac Medico2009-09-261-7/+13
| | | | | | returns None, and raise 'ebuild not found' exceptions when necessary. svn path=/main/trunk/; revision=14442
* Bug #285767 - Add support to to identify and eliminate redundant packageZac Medico2009-09-251-7/+88
| | | | | | selections when multiple atoms happen to specify a version range. svn path=/main/trunk/; revision=14432
* Fix UnboundLocalError triggered by atom without category for nonexistentZac Medico2009-09-251-1/+1
| | | | | | package. Thanks to Jeremy Olexa <darkside@gentoo.org> for reporting. svn path=/main/trunk/; revision=14431
* Use next(iterator) instead of iterator.next() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-211-4/+4
| | | | | | (2to3-3.1 -f next -nw ${FILES}) svn path=/main/trunk/; revision=14355
* Define long as int when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+1
| | | | svn path=/main/trunk/; revision=14343
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-15/+15
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327