summaryrefslogtreecommitdiffstats
path: root/pym/portage_dep.py
Commit message (Collapse)AuthorAgeFilesLines
* For bug #181355, detect parenthesis mismatch in paren_reduce(), raise an ↵Zac Medico2007-06-111-2/+9
| | | | | | InvalidDependString exception, and make sure that all callers handle the exception properly. (trunk r6795:6797) svn path=/main/branches/2.1.2/; revision=6798
* Fix an IndexError in get_operator() that occurs when isvalidatom() passes it ↵v2.1.2.9Zac Medico2007-05-301-0/+2
| | | | | | an empty string. (trunk r6680) svn path=/main/branches/2.1.2/; revision=6681
* For bug #180399, raise an appropriate InvalidDependString exception if there ↵Zac Medico2007-05-301-1/+12
| | | | | | is no flag attached directly to a '?' token. (trunk r6678) svn path=/main/branches/2.1.2/; revision=6679
* Return a copy of the cached result from match_from_list(). (trunk r6673)Zac Medico2007-05-301-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=6674
* Fix slot handling at the beginning of match_from_list(). (trunk r6669)Zac Medico2007-05-301-2/+1
| | | | svn path=/main/branches/2.1.2/; revision=6670
* Fix get_operator() and best_match_to_list() so that slot deps mesh properly ↵Zac Medico2007-05-291-1/+2
| | | | | | with operators. (trunk r6663) svn path=/main/branches/2.1.2/; revision=6664
* Fix dep_getcpv() so that it always properly removes the slot regardless of ↵Zac Medico2007-05-291-3/+2
| | | | | | which operator is present. (trunk r6661) svn path=/main/branches/2.1.2/; revision=6662
* Don't pass slotted packages into pkgsplit since it doesn't handle them. ↵Zac Medico2007-05-291-4/+11
| | | | | | (trunk r6659) svn path=/main/branches/2.1.2/; revision=6660
* For bug #179870, add support for cpv:slot in match_from_list() and use it to ↵Zac Medico2007-05-291-13/+10
| | | | | | make config.setcpv() distinguish slot atoms in package.use. (trunk r6657) svn path=/main/branches/2.1.2/; revision=6658
* For backward compatibility with api consumers, _dep_check_strict behavior ↵Zac Medico2007-02-071-2/+3
| | | | | | will be explicitly enabled as necessary. Thanks to Brian <dol-sen@telus.net> for reporting issues with porthole and equery. (trunk r5907) svn path=/main/branches/2.1.2/; revision=5911
* Validate ebuild names in portdbapi.cp_list() and raise an raise an ↵Zac Medico2007-01-181-0/+2
| | | | | | informative InvalidData exception from match_from_list when necessary. (trunk r5712:5714) svn path=/main/branches/2.1.2/; revision=5715
* another annoy space bugAlec Warner2007-01-121-1/+1
| | | | svn path=/main/trunk/; revision=5602
* more string deprecationAlec Warner2007-01-121-2/+2
| | | | svn path=/main/trunk/; revision=5595
* comment the excepts in a few placesAlec Warner2007-01-121-1/+1
| | | | svn path=/main/trunk/; revision=5584
* Change vercmp to use int() instead of string atoi, catch ValueError in pkgcmpAlec Warner2007-01-121-3/+1
| | | | svn path=/main/trunk/; revision=5581
* Handle the exception in isvalidatom, change it to use a portage exceptoin, ↵Alec Warner2007-01-111-1/+5
| | | | | | thanks to Zac for pointing this out svn path=/main/trunk/; revision=5571
* elaborate a bit on isjustname()Alec Warner2007-01-111-1/+1
| | | | svn path=/main/trunk/; revision=5563
* Use startwith to simplify =* matching.Zac Medico2007-01-101-2/+1
| | | | svn path=/main/trunk/; revision=5521
* Minor fixes for the =* operator (I hope we're done now :).Zac Medico2007-01-101-3/+6
| | | | svn path=/main/trunk/; revision=5520
* I hate this thingMarius Mauch2007-01-101-1/+4
| | | | svn path=/main/trunk/; revision=5519
* minor performance improvementMarius Mauch2007-01-101-5/+5
| | | | svn path=/main/trunk/; revision=5518
* also sanitize mycpv for =* handlingMarius Mauch2007-01-101-0/+2
| | | | svn path=/main/trunk/; revision=5517
* =* operator sucksMarius Mauch2007-01-101-8/+5
| | | | svn path=/main/trunk/; revision=5516
* Documenting the loop a bitMarius Mauch2007-01-101-0/+3
| | | | svn path=/main/trunk/; revision=5515
* Make the =* operator more robustMarius Mauch2007-01-101-2/+7
| | | | svn path=/main/trunk/; revision=5514
* Attach the problematic data to the exception for debuggingMarius Mauch2007-01-101-1/+1
| | | | svn path=/main/trunk/; revision=5513
* Stupid me, shouldn't jsut move a part of the patchMarius Mauch2007-01-101-0/+12
| | | | svn path=/main/trunk/; revision=5512
* Always use vercmp for cpv comparisonsMarius Mauch2007-01-101-4/+3
| | | | svn path=/main/trunk/; revision=5511
* Create a backward compatibility mode for dep_check() so that emerge can use ↵Zac Medico2006-12-211-0/+10
| | | | | | it to gracefully deal with installed packages that have invalid atoms or dep syntax. svn path=/main/trunk/; revision=5345
* Make use_reduce raise an InvalidDependString exception for use? conditionals ↵Zac Medico2006-12-161-3/+5
| | | | | | that aren't followed by parenthesis and add appropriate exception handling in dep_check. svn path=/main/trunk/; revision=5305
* Add an allow_blockers parameter to isvalidatom so that the behavior is ↵Zac Medico2006-12-101-2/+2
| | | | | | optional. Thanks to Brian Harring for the suggestion. svn path=/main/trunk/; revision=5264
* For bug #157734, fix repoman isvalidatom() checks. Thanks to Brian Harring ↵Zac Medico2006-12-101-0/+2
| | | | | | for the patch. svn path=/main/trunk/; revision=5263
* Don't collapse the tuple into a hash, since dict can use __eq__ to avoid ↵Zac Medico2006-12-101-3/+3
| | | | | | problems with hash collisions. Thanks to Brian Harring for reporting. svn path=/main/trunk/; revision=5262
* To minimize memory consumption and maximize performance, use hash values for ↵Zac Medico2006-12-101-2/+3
| | | | | | cache keys. svn path=/main/trunk/; revision=5260
* Cache results of dep_getcpv() calls.Zac Medico2006-12-101-1/+9
| | | | svn path=/main/trunk/; revision=5251
* Cache the results of match_from_list() calls.Zac Medico2006-12-101-0/+8
| | | | svn path=/main/trunk/; revision=5250
* Add ? to the invalid atom characters.Zac Medico2006-12-091-1/+1
| | | | svn path=/main/trunk/; revision=5242
* Make isvalidatom() (and thus repoman) reject atoms containing |() ↵Zac Medico2006-12-091-1/+6
| | | | | | characters. Thanks to Brian Harring for the suggestion. svn path=/main/trunk/; revision=5241
* Revert r5175 for bug #152127 since the original = behavior seems more ↵Zac Medico2006-12-071-11/+2
| | | | | | desirable. We can change the >= and <= behavior instead. svn path=/main/trunk/; revision=5204
* Sync match_to_list >=, <=, etc.. code with the new = code.Zac Medico2006-12-061-1/+2
| | | | svn path=/main/trunk/; revision=5176
* Make match_to_list = behavior consistent with >= and <= for bug #152127.Zac Medico2006-12-061-2/+11
| | | | svn path=/main/trunk/; revision=5175
* Thanks again to Chris White for these additional portage_dep docstrings.Zac Medico2006-11-091-23/+162
| | | | svn path=/main/trunk/; revision=4999
* Thanks to Chris White for these portage_dep docstrings.Zac Medico2006-11-081-6/+50
| | | | svn path=/main/trunk/; revision=4987
* Improve best_match_to_list() and include support for slot deps.Zac Medico2006-10-051-6/+22
| | | | svn path=/main/trunk/; revision=4598
* Add support for slot based dep matching in all dbapi derived classes. The ↵Zac Medico2006-10-051-1/+20
| | | | | | supported syntax is ${CATEGORY}/${PN}:${SLOT} (identical to that used by paludis and pkgcore). svn path=/main/trunk/; revision=4594
* Share duplicate code between dep_getkey() and dep_getcpv().Zac Medico2006-10-041-10/+1
| | | | svn path=/main/trunk/; revision=4593
* Move best_match_to_list, match_from_list, and match_to_list from the core ↵Zac Medico2006-07-221-1/+113
| | | | | | portage module to portage_dep. svn path=/main/trunk/; revision=3991
* Move dep_transform from the portage_dep module to portage_update.Zac Medico2006-07-211-22/+0
| | | | svn path=/main/trunk/; revision=3981
* Move isjustname, isspecific, dep_getkey, and dep_transform from the core ↵Zac Medico2006-07-211-1/+64
| | | | | | portage module to portage_dep. svn path=/main/trunk/; revision=3976
* Move dep_getcpv, get_operator, and isvalidatom from the core portage module ↵Zac Medico2006-07-211-0/+57
| | | | | | to portage_dep. svn path=/main/trunk/; revision=3974