summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Don't call self.scan() in tbz2.__init__ since all methods call it anyway.Zac Medico2009-09-291-1/+0
| | | | svn path=/main/trunk/; revision=14459
* Bug #286780 - Fix email.MIME* imports to use email.mime.* (works with pythonZac Medico2009-09-281-3/+3
| | | | | | 2.6 and python 3). Thanks to Hanno Meyer-Thurow <h.mth@web.de> for this patch. svn path=/main/trunk/; revision=14458
* Fix breakage in file path -> package lookup code.Zac Medico2009-09-282-2/+2
| | | | svn path=/main/trunk/; revision=14455
* Make _test_pty_eof() call process.spawn() instead of os.fork().Zac Medico2009-09-271-8/+9
| | | | svn path=/main/trunk/; revision=14454
* Try to avoid blocking on Darwin in _test_pty_eof() by using slave_fd directlyZac Medico2009-09-271-7/+5
| | | | | | instead of fdopen. svn path=/main/trunk/; revision=14453
* In _test_pty_eof(), call waitpid on the child process only after reading allZac Medico2009-09-271-1/+1
| | | | | | the data from the pty. svn path=/main/trunk/; revision=14452
* Make _test_pty_eof() fork when writing to the slave_fd, since otherwiseZac Medico2009-09-271-4/+12
| | | | | | it would block on some platforms such as Darwin. svn path=/main/trunk/; revision=14451
* Make _test_pty_eof() use non-blocking IO, required for Darwin kernel.Zac Medico2009-09-271-1/+13
| | | | svn path=/main/trunk/; revision=14449
* Use catsplit() instead of a regex to generate dbapi._categories. Thanks toZac Medico2009-09-271-6/+3
| | | | | | Marat Radchenko <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14448
* Fix binTestsInit() to use correct values for PORTAGE_BIN_PATH andZac Medico2009-09-271-6/+9
| | | | | | PORTAGE_PYM_PATH. svn path=/main/trunk/; revision=14447
* Use explicit imports instead of *.Zac Medico2009-09-272-2/+2
| | | | svn path=/main/trunk/; revision=14446
* Use mkdtemp() instead of hardcoded pym/portage/tests/bin/root directory.Zac Medico2009-09-271-16/+26
| | | | svn path=/main/trunk/; revision=14445
* Bug #286522 - Check all portdbapi.findname return values in case itZac Medico2009-09-269-19/+43
| | | | | | returns None, and raise 'ebuild not found' exceptions when necessary. svn path=/main/trunk/; revision=14442
* Bug #286475 - Fix KeyValuePairFileLoader.lineParser() so it doesn't raiseZac Medico2009-09-261-4/+1
| | | | | | AttributeError when a key/value is redefined. svn path=/main/trunk/; revision=14435
* Revert r14430 and fix to do as intended. Thanks to Arfrever for reporting.v2.2_rc42Zac Medico2009-09-261-2/+4
| | | | svn path=/main/trunk/; revision=14433
* Bug #285767 - Add support to to identify and eliminate redundant packageZac Medico2009-09-252-8/+89
| | | | | | selections when multiple atoms happen to specify a version range. svn path=/main/trunk/; revision=14432
* Fix UnboundLocalError triggered by atom without category for nonexistentZac Medico2009-09-251-1/+1
| | | | | | package. Thanks to Jeremy Olexa <darkside@gentoo.org> for reporting. svn path=/main/trunk/; revision=14431
* Make sure self._allowed_keys are sorted in the table create statement. TheyZac Medico2009-09-251-1/+1
| | | | | | already are sorted, but do it explicitly here for clarity. svn path=/main/trunk/; revision=14430
* Fix formatting of sizes with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-251-1/+1
| | | | svn path=/main/trunk/; revision=14429
* Remove ugly code from __len__, since defining __bool__ fixes the sameZac Medico2009-09-251-9/+1
| | | | | | issue. svn path=/main/trunk/; revision=14428
* Define __bool__() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-254-5/+19
| | | | svn path=/main/trunk/; revision=14427
* Remove unused imports.Zac Medico2009-09-252-4/+0
| | | | svn path=/main/trunk/; revision=14425
* Fix length calculation so it doesn't assume the length of the encodedZac Medico2009-09-251-3/+4
| | | | | | string is the same as the unicode string. svn path=/main/trunk/; revision=14424
* Add a test case for this issue: http://bugs.python.org/issue5334Zac Medico2009-09-252-1/+45
| | | | svn path=/main/trunk/; revision=14423
* Use 'in' instead of has_key() in portage.glsa.Glsa.parse() when Python 3 is ↵Arfrever Frehtes Taifersar Arahesis2009-09-251-1/+2
| | | | | | used. svn path=/main/trunk/; revision=14422
* Use list comprehensions instead of filter() or map() in some places for ↵Arfrever Frehtes Taifersar Arahesis2009-09-255-6/+7
| | | | | | compatibility with Python 3. svn path=/main/trunk/; revision=14421
* Fix more.Zac Medico2009-09-251-1/+1
| | | | svn path=/main/trunk/; revision=14420
* Fix ValueError in digestcheck(), reported by Arfrever.Zac Medico2009-09-251-1/+2
| | | | svn path=/main/trunk/; revision=14419
* Remove unnecessary dict.has_key() call (fix for python 3).Zac Medico2009-09-251-2/+0
| | | | svn path=/main/trunk/; revision=14418
* Show an appropriate error message in _create_pty_or_pipe() if openpty()Zac Medico2009-09-242-15/+16
| | | | | | fails inside _test_pty_eof(). svn path=/main/trunk/; revision=14417
* Fix regression in _getitem() from r14398, since myf.read().split("\n")Zac Medico2009-09-241-1/+4
| | | | | | | yields an empty string at the end which is causes _parse_data() to catch a ValueError and raise CacheCorruption. svn path=/main/trunk/; revision=14416
* Add a test case for http://bugs.python.org/issue5380 and mark it as 'todo'Zac Medico2009-09-241-0/+22
| | | | | | since it fails with current versions of python 3. svn path=/main/trunk/; revision=14415
* Make _test_pty_eof() return None if openpty() fails.Zac Medico2009-09-241-1/+5
| | | | svn path=/main/trunk/; revision=14414
* Use a runtime check to see if http://bugs.python.org/issue5380 is fixed.Zac Medico2009-09-241-5/+62
| | | | svn path=/main/trunk/; revision=14413
* Use dict.__iter__ instead of keys(), since it behaves identically in pythonZac Medico2009-09-241-2/+2
| | | | | | 2 and 3. svn path=/main/trunk/; revision=14412
* Fix previous commit.Zac Medico2009-09-241-2/+2
| | | | svn path=/main/trunk/; revision=14402
* Warn if cpv_getkey() is given invalid input that triggers legacy code.Zac Medico2009-09-241-0/+4
| | | | svn path=/main/trunk/; revision=14401
* Decode directory names where appropriate in digestcheck(). Thanks toZac Medico2009-09-241-0/+14
| | | | | | Arfrever for reporting. svn path=/main/trunk/; revision=14399
* Misc performance enhancements. Thanks to Marat RadchenkoZac Medico2009-09-243-22/+13
| | | | | | <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14398
* 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 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-234-4/+3
| | | | | | 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