summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/virtual.py
Commit message (Collapse)AuthorAgeFilesLines
* Use unicode_literals more.Zac Medico2013-01-181-1/+2
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* _pkg_str: pass in config + metadata with KEYWORDSZac Medico2012-08-241-2/+2
| | | | | This will be needed in order to support stable use.mask/force for bug #431078.
* fakedbapi: use _pkg_str moreZac Medico2012-06-221-13/+38
|
* _pkg_str: add version attribute for comparisonsZac Medico2012-05-131-2/+8
| | | | | This attribute can be passed directly into vercmp, avoiding the need to generate this string many times.
* fakedbapi.cp_list: remove obsolete virtual codeZac Medico2012-04-221-2/+1
| | | | | This should have been included in commit d30db49bcaecbdeb20f6d4e180979b60b6260f69.
* dbapi.cp_list: remove special case for virtualsZac Medico2012-04-221-2/+3
| | | | | | | Since commit d603f1440c814377fbc1965729fd9b6b008cf76d, the match caches use the result from dep_expand for the cache_key, so the caches are free of old-style virtual mappings. This allows the match caches to be safely shared with cp_list.
* dbapi: account for unevaluated_atom in cachesZac Medico2012-04-201-6/+10
| | | | | This will fix bug 412391. This is analogous to the bug fixed in commit 5438bb29c996d777b6343515995176912a7c137f.
* fakedbapi: add myrepo args for portdbapi compatZac Medico2011-06-101-3/+3
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Replace dict.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-221-1/+1
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14384
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Py3k compatibility patch #3 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-011-4/+4
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10872
* * Initialize dbapi._categories = None so that we can compareZac Medico2007-12-291-2/+2
| | | | | | | | with None instead of using hasattr. * Remove unwanted self._categories initialization from the portdbapi constructor. svn path=/main/trunk/; revision=9092
* Make dep_expand() stop relying on having a categories list:Zac Medico2007-12-281-0/+2
| | | | | | | | | * Create and use a dbapi.categories property that is automatically generated from dbapi.cp_all(). * Make mutable dbapi instances delete the invalidate the cached categories when they need to be regenerated. svn path=/main/trunk/; revision=9080
* Fix cp_list() to prevent it from returning a referenceZac Medico2007-10-281-2/+2
| | | | | | to one of it's internal lists. svn path=/main/trunk/; revision=8331
* Sort all dbapi.cp_list() results in ascending order andZac Medico2007-10-281-4/+11
| | | | | | | cache the results when possible. The order is preserved in dbapi.match() so those results are also sorted. svn path=/main/trunk/; revision=8329
* Bug #149816 - Implement visibility filtering support forZac Medico2007-10-091-3/+17
| | | | | | | | binary packages. This works by creating a virtual filtered repository that can be composed of multiple package types, including ebuilds, binary packages, and installed packages. svn path=/main/trunk/; revision=8012
* dbapi currently depends on being subclassed and having the subclasses ↵Alec Warner2007-09-071-2/+19
| | | | | | impelement certain functions (that aren't even implemented IN dbapi, so a particular child has no idea what functions are actually required). Try to make this cleared by adding stubs in dbapi. There should be no behavior change here because these cases would be Attribute errors in the current scheme. Also add a horribly bad testdbapi with stub funcs to use in testing code. Remove regexes with possibly faster string comparisons. svn path=/main/trunk/; revision=7752
* Use the --depclean algorithm to make --prune safe. The old unsafe --prune ↵Zac Medico2007-07-181-4/+1
| | | | | | will be used if the --nodeps option is specified. svn path=/main/trunk/; revision=7305
* Remove more unnecessary list generation.Zac Medico2007-06-211-1/+1
| | | | svn path=/main/trunk/; revision=6912
* copyrights.. id? what?Alec Warner2007-06-021-0/+5
| | | | svn path=/main/trunk/; revision=6724
* Use the real symbols in import statements, not the references in __init__.pyMarius Mauch2007-02-111-1/+2
| | | | svn path=/main/trunk/; revision=5953
* Move dbapi and related classes out of __init__.py into their own subpackage.Marius Mauch2007-02-101-0/+89
Also perform some minor cleanups. svn path=/main/trunk/; revision=5939