summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/depgraph.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Use dep_expand instead of key_expand in the blocker display, since it seemsZac Medico2009-09-211-3/+3
| | | | | | | | like a better fit. Also, use str(atom) since we don't want to assume that Atoms are string type (though they happen to be now). This assumption is what caused the traceback in bug 285637, comment #5. svn path=/main/trunk/; revision=14320
* Use range() instead of xrange() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-211-6/+6
| | | | | | (2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317
* Define basestring as str when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+3
| | | | svn path=/main/trunk/; revision=14316
* Use filter() and zip() instead of itertools.ifilter() and itertools.izip() ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-3/+3
| | | | | | | | for compatibility with Python 3. (2to3-3.1 -f itertools -f itertools_imports -nw ${FILES}) svn path=/main/trunk/; revision=14314
* Fix AtomArg constructor calls to pass in Atom instances, so the constructorZac Medico2009-09-211-20/+19
| | | | | | never has to construct one. svn path=/main/trunk/; revision=14311
* Fix redundant Atom construtor call in _show_unsatisfied_dep().Zac Medico2009-09-211-1/+0
| | | | svn path=/main/trunk/; revision=14309
* Fix typo from previous commit.Zac Medico2009-09-201-1/+1
| | | | svn path=/main/trunk/; revision=14306
* Fix depgraph._validate_blockers() so that it doesn't do prohibited Atom(Atom)Zac Medico2009-09-201-5/+4
| | | | | | constructor calls. svn path=/main/trunk/; revision=14305
* Support print() function with Python 2 in more files.Arfrever Frehtes Taifersar Arahesis2009-09-201-0/+2
| | | | svn path=/main/trunk/; revision=14295
* Update syntax of calls to print() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-57/+57
| | | | | | (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-19/+19
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Remove obsolete InvalidAtom handler in _add_pkg_dep_string().Zac Medico2009-09-191-15/+8
| | | | svn path=/main/trunk/; revision=14283
* Avoid lots of redundant Atom constructor calls. Thanks to Marat RadchenkoZac Medico2009-09-191-16/+10
| | | | | | <marat@slonopotamus.org> for the initial patch from bug #276813. svn path=/main/trunk/; revision=14282
* Fix _expand_new_virtuals() to preserve USE deps in atoms for new-styleZac Medico2009-09-191-6/+12
| | | | | | virtuals, and update the corresponding depgraph code. svn path=/main/trunk/; revision=14281
* Fix broken virtual depth code from previous commit.Zac Medico2009-09-141-2/+1
| | | | svn path=/main/trunk/; revision=14273
* Add support in depgraph._add_pkg_dep_string() for adding indirect virtualZac Medico2009-09-141-6/+36
| | | | | | | | deps to the graph. This takes advantage of circular dependency avoidance that's done by dep_zapdeps, while avoiding the dependency graph distortion reported in bug #283795. svn path=/main/trunk/; revision=14272
* Make depgraph._select_atoms() return a dict, in order to separate selectedZac Medico2009-09-141-17/+30
| | | | | | direct deps from indirect virtual deps. svn path=/main/trunk/; revision=14271
* Reimplement the code from bug #283795 so that indirect deps are preservedZac Medico2009-09-141-0/+16
| | | | | | | | for later use. TODO: Write code to add selected indirect virtual deps to the graph. This will take advantage of circular dependency avoidance that's done by dep_zapdeps. svn path=/main/trunk/; revision=14269
* Inside depgraph._show_unsatisfied_dep(), show reasons for packages masked dueZac Medico2009-08-251-3/+7
| | | | | | to backtracking. svn path=/main/trunk/; revision=14155
* Bug #282269 - Avoid str() calls with overlay paths, which can triggerZac Medico2009-08-221-1/+3
| | | | | | UnicodeEncodeError in python-2.x. svn path=/main/trunk/; revision=14124
* Add some --debug output for backtracking. Also, remove unused imports.v2.2_rc39Zac Medico2009-08-211-3/+31
| | | | svn path=/main/trunk/; revision=14122
* Set a limit of 30 backtracking attempts, since it's possible for it toZac Medico2009-08-121-3/+4
| | | | | | go out of control and take an unreasonable amount of time. svn path=/main/trunk/; revision=14014
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-8/+2
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13995
* Don't trigger the --root-deps code for removal actions such as --prune andZac Medico2009-08-101-7/+8
| | | | | | --depclean. svn path=/main/trunk/; revision=13971
* Tweak $ROOT handling inside depgraph._add_pkg_deps() for removal actions,Zac Medico2009-08-101-0/+2
| | | | | | so --with-bdeps works correctly with --depclean and --prune. svn path=/main/trunk/; revision=13969
* Use writemsg_stdout() for safe display of unicode overlay paths.Zac Medico2009-08-081-1/+1
| | | | svn path=/main/trunk/; revision=13956
* Add missing noiselevel argument in writemsg_stdout() calls.Zac Medico2009-08-081-3/+5
| | | | svn path=/main/trunk/; revision=13954
* Use writemsg_stdout() for safe unicode output.Zac Medico2009-08-071-17/+3
| | | | svn path=/main/trunk/; revision=13948
* Open file in text mode (unicode) where appropriate.Zac Medico2009-08-051-0/+8
| | | | svn path=/main/trunk/; revision=13913
* Avoid UnicodeEncodeError with unicode package.mask comments. Thanks toZac Medico2009-08-041-0/+5
| | | | | | Thanks to Scott Moreau (soreau) for reporting. svn path=/main/trunk/; revision=13910
* Fix NameError from r13880. Thanks to Arfrever for reporting.Zac Medico2009-08-031-1/+1
| | | | svn path=/main/trunk/; revision=13883
* Bug #278729 - Add an Atom.without_use attribute which is identical to theZac Medico2009-08-031-15/+3
| | | | | | atom itself, except without any USE dependencies. svn path=/main/trunk/; revision=13880
* In depgraph._show_slot_collision_notice(), display $ROOT (if not /) with eachZac Medico2009-07-301-0/+2
| | | | | | slot atom. svn path=/main/trunk/; revision=13865
* Fix depgraph._show_missed_update() to keep each $ROOT separate.Zac Medico2009-07-291-4/+8
| | | | svn path=/main/trunk/; revision=13855
* Account for $ROOT inside depgraph._show_missed_update_unsatisfied_dep().Zac Medico2009-07-291-4/+3
| | | | svn path=/main/trunk/; revision=13854
* Remove redundant loop inside depgraph._show_missed_update_slot_conflicts().Zac Medico2009-07-281-12/+12
| | | | svn path=/main/trunk/; revision=13853