summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix test case for recent changes.Zac Medico2009-09-241-1/+1
| | | | svn path=/main/trunk/; revision=14397
* Bug #286118 - Fix dbapi.move_ent() methods so they don't assume Atom instancesZac Medico2009-09-232-15/+16
| | | | | | | can be concatenated with strings (even though they can now, it's not really a good assumption). svn path=/main/trunk/; revision=14396
* Fix "TypeError: object of type 'filter' has no len()".Arfrever Frehtes Taifersar Arahesis2009-09-231-2/+2
| | | | svn path=/main/trunk/; revision=14395
* Fix formatting of size of downloads with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-231-1/+1
| | | | svn path=/main/trunk/; revision=14394
* Bug #285979 - Replace references to CDEPEND with UNUSED_00, to make it clearZac Medico2009-09-236-7/+4
| | | | | | that this key really is unused. svn path=/main/trunk/; revision=14393
* Optimize vardbapi.getpath(). Thanks to Marat RadchenkoZac Medico2009-09-231-3/+8
| | | | | | <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14392
* Optimize SlotDict.iteritems() a little.Zac Medico2009-09-221-1/+2
| | | | svn path=/main/trunk/; revision=14391
* Make SlotDict use call self.iteritems() where appropriate since it implementsZac Medico2009-09-221-5/+5
| | | | | | that method even when running in python 3.x. svn path=/main/trunk/; revision=14390
* Fix stack_dicts() to always return a dict.Zac Medico2009-09-221-3/+1
| | | | svn path=/main/trunk/; revision=14389
* Don't pass the ignore_none parameter to stack_dicts() since it does nothingZac Medico2009-09-221-1/+1
| | | | | | now. svn path=/main/trunk/; revision=14388
* Clean up stack_dicts() a little.Zac Medico2009-09-221-6/+5
| | | | svn path=/main/trunk/; revision=14387
* Disable the ignore_none parameter for stack_dicts() since having it returnZac Medico2009-09-221-5/+2
| | | | | | None instead of a dict sometimes is hazardous. svn path=/main/trunk/; revision=14386
* Replace dict.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-227-19/+18
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14385
* Replace dict.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-227-13/+13
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14384
* Remove code that's been commented out.Zac Medico2009-09-221-18/+0
| | | | svn path=/main/trunk/; revision=14383
* Replace dict.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-222-7/+7
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14382
* Fix for python 3.x compatibility.Zac Medico2009-09-221-5/+13
| | | | svn path=/main/trunk/; revision=14381
* Replace dict.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-225-17/+17
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14380
* Replace doct.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-224-9/+9
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14379
* Do manual unicode handling (instead of using the wrapped os module) inZac Medico2009-09-221-12/+26
| | | | | | | portdbapi.findname2(), since it's a hotspot. Thanks to Marat Radchenko <marat@slonopotamus.org> for the initial patch. svn path=/main/trunk/; revision=14378
* For python 3.x with boolean target, len() results in TypeError, soZac Medico2009-09-221-1/+9
| | | | | | make __len__ return 0 or 1 in this case. svn path=/main/trunk/; revision=14377
* Optimize unicode wrappers. Thanks to Marat Radchenko <marat@slonopotamus.org>Zac Medico2009-09-221-28/+30
| | | | | | for this patch from bug #276813. svn path=/main/trunk/; revision=14376
* Fix another potential 'RuntimeError: dictionary changed size during iteration'Zac Medico2009-09-221-1/+1
| | | | | | exception in _owners_db._populate() for py3k. svn path=/main/trunk/; revision=14375
* Fix 'iteritems' attribute detection to look for 'items' instead.Zac Medico2009-09-221-1/+1
| | | | svn path=/main/trunk/; revision=14374
* Fix 'RuntimeError: dictionary changed size during iteration' inZac Medico2009-09-221-1/+1
| | | | | | bindbapi.aux_update() with py3k. svn path=/main/trunk/; revision=14373
* Remove redundant list() since starred expressions work with iterators.Zac Medico2009-09-221-1/+1
| | | | svn path=/main/trunk/; revision=14372
* Fix items to prevent infinite recursion.Zac Medico2009-09-221-1/+1
| | | | svn path=/main/trunk/; revision=14371
* Fix 'RuntimeError: dictionary changed size during iteration' inZac Medico2009-09-211-1/+1
| | | | | | _owners_db._populate() with py3k. svn path=/main/trunk/; revision=14370
* Don't wrap os.statvfs since it requires unicode string args in py3k.Zac Medico2009-09-211-0/+1
| | | | svn path=/main/trunk/; revision=14369
* Fix sorted() keyword arg for py3k.Zac Medico2009-09-211-1/+2
| | | | svn path=/main/trunk/; revision=14368
* Encode/decode names from the xpak index where appropriate.Zac Medico2009-09-211-0/+4
| | | | svn path=/main/trunk/; revision=14367
* In _unicode_func_wrapper, only encode keyword argument values, and not theZac Medico2009-09-211-2/+1
| | | | | | keys. svn path=/main/trunk/; revision=14366
* Fix PORTAGE_WORKDIR_MODE parsing code so it doesn't store python's octalZac Medico2009-09-211-1/+1
| | | | | | syntax in the environment variable. svn path=/main/trunk/; revision=14365
* Make find_binary() use os.environ.get instead of os.getenv, since os.getenvZac Medico2009-09-211-2/+1
| | | | | | isn't behaving correctly in py3k (maybe a unicode wrapper issue?). svn path=/main/trunk/; revision=14364
* Don't encode the env in py3k since it expects strings for the env that'sZac Medico2009-09-211-13/+9
| | | | | | passed into os.execve(). svn path=/main/trunk/; revision=14363
* Temporarily disable use of pty in py3k since it triggers an unresolvedZac Medico2009-09-211-0/+4
| | | | | | | | issue, http://bugs.python.org/issue5380. With this workaround, portage.tests.ebuild.test_spawn.SpawnTestCase.testLogfile() does not raise IOError. svn path=/main/trunk/; revision=14362
* Fix decodeint() for py3k compat, since bytes are a sequence of integersZac Medico2009-09-211-5/+8
| | | | | | instead of characters. svn path=/main/trunk/; revision=14361
* Use input() instead of raw_input() when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+4
| | | | svn path=/main/trunk/; revision=14358
* Decode database name passed to ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+2
| | | | | | portage.cache.sqlite.database._db_module.connect() for compatibility with Python 3. svn path=/main/trunk/; revision=14357
* Use next(iterator) instead of iterator.next() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-217-13/+13
| | | | | | (2to3-3.1 -f next -nw ${FILES}) svn path=/main/trunk/; revision=14355
* Decode all keys in dictionary containing environment passed to os.execve() ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+7
| | | | | | in portage.process._exec() for compatibility with Python 3. svn path=/main/trunk/; revision=14352
* 'filtered_auxdbkeys' should be a list to allow sorting.Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | svn path=/main/trunk/; revision=14347
* Define long as int when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-2122-0/+60
| | | | svn path=/main/trunk/; revision=14343
* Support bytes in portage.util.normalize_path() with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+7
| | | | svn path=/main/trunk/; revision=14333
* Fix portage._unicode_func_wrapper.__call__() to properly handle bytes with ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+2
| | | | | | Python 3. svn path=/main/trunk/; revision=14331
* Fix dep_expand so that it doesn't use deprecated dep_getcpv() usageZac Medico2009-09-211-12/+22
| | | | | | (with missing category). svn path=/main/trunk/; revision=14330
* Fix infinite recursion in items and values methods.Zac Medico2009-09-211-1/+1
| | | | svn path=/main/trunk/; revision=14329
* Fix infinite recursion in items and values methods.Zac Medico2009-09-211-4/+4
| | | | svn path=/main/trunk/; revision=14328
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-2159-240/+240
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Fix case for 0 args in args unicode conversion.Zac Medico2009-09-211-1/+2
| | | | svn path=/main/trunk/; revision=14326