summaryrefslogtreecommitdiffstats
path: root/pym/portage_dep.py
Commit message (Collapse)AuthorAgeFilesLines
* * Add support for Package instances in match_from_list().Zac Medico2008-05-251-7/+29
| | | | | | | * Remove the Package.cpv_slot attribute. (trunk r10418:10423) svn path=/main/branches/2.1.2/; revision=10424
* Fix paren_reduce() so that it appropriately raises an InvalidDependString()Zac Medico2008-05-251-1/+5
| | | | | | in some cases, instead of a nonsense ValueError. (trunk r10393) svn path=/main/branches/2.1.2/; revision=10409
* Fix paren_reduce() so that it appropriately raises an InvalidDependString()Zac Medico2008-05-251-0/+3
| | | | | | in some cases, instead of a nonsense AttributeError. (trunk r10392) svn path=/main/branches/2.1.2/; revision=10408
* Fix use_reduce() so that it appropriately raises an InvalidDependStringZac Medico2008-05-251-1/+1
| | | | | | | instead of an IndexError in some cases (avoid IndexError by using slice notation). (trunk r10391) svn path=/main/branches/2.1.2/; revision=10407
* Merge the Atom class and dbapi._iter_match() from trunk r10387 and r10394.Zac Medico2008-05-251-4/+40
| | | | | | Everything related to USE deps has been omitted for now. svn path=/main/branches/2.1.2/; revision=10403
* Fix isvalidatom() so tests pass, and add a USE deps case to the tests.Zac Medico2008-05-251-4/+8
| | | | | | (trunk r10399) svn path=/main/branches/2.1.2/; revision=10401
* Add square brackets, [ and ] to the _invalid_atom_chars_regexp that'sZac Medico2008-05-251-1/+1
| | | | | | | used by isvalidatom() since we don't wan't atoms with USE deps slipping through here. svn path=/main/branches/2.1.2/; revision=10397
* add @ to the list of invalid atom chars so sets with prefix aren'tZac Medico2008-03-281-1/+1
| | | | | | considered as atoms accidentally (trunk r9479) svn path=/main/branches/2.1.2/; revision=9560
* When in strict mode, make paren_reduce() detect missing whitespace aroundZac Medico2008-03-281-0/+8
| | | | | | | | | parenthesis tokens and raise an InvalidDependString exception. Strict mode is not enabled when handling installed packages, so this will only affect repoman and packages that haven't been installed yet. Thanks to zlin for reporting. (trunk r9471) svn path=/main/branches/2.1.2/; revision=9556
* Make strip_empty() return a nedw list instead of working in-place. Thanks toZac Medico2008-03-281-4/+1
| | | | | | René Neumann <rene.neumann@necoro.net> for the suggestion. (trunk r9460) svn path=/main/branches/2.1.2/; revision=9552
* Bug #203316 - Fix isvalidatom() to properly detect invalid operatorsZac Medico2008-01-111-1/+1
| | | | | | | used together with slot atoms. Thanks to Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for the patch. (trunk r9166) svn path=/main/branches/2.1.2/; revision=9174
* Don't cache results from match_from_list() since *dbapi.match() caches do ↵Zac Medico2007-09-061-10/+1
| | | | | | the job. (trunk r7694) svn path=/main/branches/2.1.2/; revision=7730
* 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