summaryrefslogtreecommitdiffstats
path: root/pym/portage/dep/dep_check.py
Commit message (Collapse)AuthorAgeFilesLines
* Use unicode_literals more.Zac Medico2013-01-181-5/+6
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* Rename Package.metadata to _metadata.Zac Medico2012-11-261-1/+1
| | | | | The raw metadata is considered a private low-level internal. This makes the Package class consistent with the _pkg_str class.
* Add Package.eapi property.Zac Medico2012-11-171-1/+1
|
* dep_check: cleanup repoman use.force/mask codeZac Medico2012-09-131-8/+5
|
* _pkg_str: pass in config + metadata with KEYWORDSZac Medico2012-08-241-15/+4
| | | | | This will be needed in order to support stable use.mask/force for bug #431078.
* depgraph: pass use_reduce result to dep_checkZac Medico2012-06-081-6/+9
| | | | This allows us to avoid extraneous use_reduce/paren_enclose calls.
* dep_check: use _pkg_str + vercmp, not pkgcmpZac Medico2012-05-131-15/+21
|
* Fix missed ROOT -> EROOT changes.Zac Medico2011-10-271-2/+6
| | | | These go along with commit a715b65f7bd36409c1283e6911265d1f4405ab7a.
* dep_zapdeps: use digraph for preference selectionZac Medico2011-05-301-2/+9
| | | | | | | | | | This is required in order for dep_zapdeps to work as intended for solving cases of bug #264434 in which there is an installed package that may need to be uninstalled in order to resolve blockers. It fixes a failure to resolve blockers when attempting to replace media-video/ffmpeg with media-video/libav (symptom is similar to bug #339164, but with new-style virtual instead of old-style PROVIDE virtual).
* dep_check: avoid old-style virtuals codeZac Medico2011-05-091-2/+13
|
* dep_check: return errors as unicodeZac Medico2011-03-171-4/+5
| | | | | | | | | | | This should prevent the following error due to returning raw bytes, reported in forum thread #869281: File "pym/_emerge/BlockerDB.py", line 72, in findInstalledBlockers portage.writemsg("!!! %s/*DEPEND: %s\n" % \ (pkg_location, atoms), noiselevel=-1) UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 23: ordinal not in range(128)
* depgraph: avoid atom hash collisions in dep_checkZac Medico2011-02-121-8/+16
| | | | | | | | Atoms are stored in the graph as (atom, id(atom)) tuples since each atom is considered to be a unique entity. For example, atoms that appear identical may behave differently in USE matching, depending on their unevaluated form. Also, specially generated virtual atoms may appear identical while having different _orig_atom attributes.
* depgraph: return virtual edges from select_atomsZac Medico2011-02-121-3/+4
|
* depgraph: fix distorted display of virtualsZac Medico2011-02-111-0/+6
| | | | | | | | As mentioned in bug #353933, comment #4, special new-style virtual atoms generated/distorted by _expand_new_virtuals() can prevent extract_affecting_use() from working properly. This is fixed by saving the original atoms so that the depgraph can map them back into place at the appropriate step in dependency evaluation.
* expand_new_virtuals: fix pkg_use_enabled callZac Medico2011-02-081-4/+4
| | | | AttributeError: 'tuple' object has no attribute 'use'
* expand_new_virtuals: handle None for myusev2.2.0_alpha22Zac Medico2011-02-071-1/+5
|
* expand_new_virtuals: fix last commit USE handlingZac Medico2011-02-071-2/+5
|
* Update dates in headers.Zac Medico2011-02-071-1/+1
|
* expand_new_virtuals: fix logic from prev commitZac Medico2011-02-071-1/+5
| | | | | | We need to evaluate conditionals for dependency matching purposes, though the unevaluated atom will still be available later for other purposes.
* expand_new_virtuals: save atom unevaluated useZac Medico2011-02-071-2/+2
| | | | | | | | This leads to a better unsatisfied USE message than the one reported in bug 353933, comment #3. TODO: Fix it so that these generated atoms don't break depgraph._get_dep_chain(), due to not being identical to the original atoms and therefore breaking extract_affecting_use().
* dep_zapdeps: add other_installed_some choice binZac Medico2011-01-041-3/+11
|
* dep_zapdeps: add other_installed choice binZac Medico2011-01-031-1/+11
| | | | Hopefully this will fix bug #350488.
* Revert use.unsatisfiable support for now.Zac Medico2010-11-241-1/+0
| | | | | | | | | The current implementation doesn't provide anything to distinguish it from use.mask, and it's arguable that another approach such as an atom syntax extension (for optional dependencies) would be more appropriate. This reverts commit 93ee6a847be949e7752c3c052d3eb0619e408b43.
* Support use.unsatisfiable and package.use.unsatisfiable files.Arfrever Frehtes Taifersar Arahesis2010-11-061-0/+1
|
* Fix dep_zapdeps() to handle satisfied or optional builttime depsZac Medico2010-09-081-1/+2
| | | | appropriately.
* Remove unused imports found by pylint.Arfrever Frehtes Taifersar Arahesis2010-08-291-2/+0
|
* Bug #334365 - Make dep_check() less strict with respect to EAPIZac Medico2010-08-261-17/+12
| | | | | | | | | | constraints for installed packages since previous validation will have already marked them as invalid when necessary and now we're more interested in evaluating dependencies so that things like --depclean work as well as possible in spite of partial invalidity. Also, remove obsolete EAPI atom validation code from _expand_new_virtuals() since it's handled by use_reduce() and the Atom constructor now.
* Make use_reduce() call Atom.evaluate_conditionals() when matchall is False,Zac Medico2010-08-261-5/+0
| | | | | and pass token_class=Atom in use_reduce() calls so that external Atom.evaluate_conditionals() calls can be eliminated.
* Add code to dep_check(), borrowed from _expand_new_virtuals(), to passZac Medico2010-08-261-4/+16
| | | | eapi to use_reduce() when available.
* Fix UnboundLocalError for y on line 177 in _expand_new_virtuals()Zac Medico2010-08-261-1/+1
|
* Pass token_class parameter if possible to use_reduceSebastian Luther2010-08-161-23/+20
|
* portage.dep: Integrate the functionality of dep_opconvert into use_reduceSebastian Luther2010-08-141-5/+2
|
* Implement use dependency defaultsSebastian Luther2010-08-131-1/+6
|
* portage.dep.dep_check: Make sure we don't allow slot deps in EAPi-0 ebuildsSebastian Luther2010-08-111-1/+4
|
* Introduce portage.eapi. Use it everywhere.Sebastian Luther2010-08-111-2/+3
|
* portage.dep._dep_check_strict: Unused, removedSebastian Luther2010-08-101-18/+6
|
* portage.dep.use_reduce: Work on depstrings instead of paren_reduce'd dep arraysSebastian Luther2010-08-101-8/+2
| | | | | This change makes paren_reduce and paren_normalize calls for use_reduce redundant, resp. wrong. All consumers inside portage are adopted.
* Make dep_check use depgraph._pkg_use_enabled to query USE settings of ↵Zac Medico2010-08-061-2/+4
| | | | new-style virtuals when appropriate.
* Add Atom._eval_qa_conditionals method, which unevaluated_atom supportZac Medico2010-06-161-7/+2
| | | | that will be useful for repoman atom display.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Move portage.dep_check and related functions to portage.dep.dep_check.Zac Medico2010-02-251-0/+634
svn path=/main/trunk/; revision=15462