Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Revert r12639 and use string.ascii_letters for python-3.0 compatibility. | Zac Medico | 2009-02-21 | 1 | -1/+2 | |
| | | | | svn path=/main/trunk/; revision=12669 | |||||
* | Inside portage.spawn(), open files for logfile handling in binary mode, for | Zac Medico | 2009-02-21 | 1 | -3/+3 | |
| | | | | | | compatibility with python-3.0. svn path=/main/trunk/; revision=12668 | |||||
* | Inside summarylist(), it's possible for myglsa.packages.keys() to contain | Zac Medico | 2009-02-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | unicode objects, which trigger and exception like this: File "//usr/lib64/portage/pym/portage/dep.py", line 535, in __init__ obj_setattr(self, x, getattr(s, x)) AttributeError: 'unicode' object has no attribute '__eq__' To solve this problem, convert unicode objects to plain str before passing them to the portage api. svn path=/main/trunk/; revision=12667 | |||||
* | For python-3.0 compatibility, open files in binary mode inside | Zac Medico | 2009-02-21 | 1 | -3/+3 | |
| | | | | | | SpawnProcess._start(). svn path=/main/trunk/; revision=12666 | |||||
* | When loading vdb_metadata.pickle inside vardbapi._aux_cache_init(), in | Zac Medico | 2009-02-20 | 1 | -1/+9 | |
| | | | | | | | | order to avoid an extreme performance issue, disable buffering when opening the file under python-3.0. Unfortunately, performance is still poor relative to python-2.x, but buffering makes it much worse. svn path=/main/trunk/; revision=12665 | |||||
* | Add a cross reference from FEATURES=lmirror docs to the "local" mirror docs | Zac Medico | 2009-02-20 | 1 | -0/+3 | |
| | | | | | | in portage(5). svn path=/main/trunk/; revision=12664 | |||||
* | In python-3.0, integer division results in a float, so convert back to int. | Zac Medico | 2009-02-20 | 1 | -1/+1 | |
| | | | | svn path=/main/trunk/; revision=12663 | |||||
* | Fix StringIO imports so that 2to3 can handle them. Also, replace shlex + | Zac Medico | 2009-02-20 | 5 | -30/+20 | |
| | | | | | | StringIO usage with shlex.split() where appropriate. svn path=/main/trunk/; revision=12662 | |||||
* | Add a new portage.utils.lazy_import() function which behaves similar to the | Zac Medico | 2009-02-20 | 3 | -30/+126 | |
| | | | | | | snakeoil.demandload.demandload() function. svn path=/main/trunk/; revision=12661 | |||||
* | Try to fix svn:keywords again. | Zac Medico | 2009-02-20 | 1 | -2/+2 | |
| | | | | svn path=/main/trunk/; revision=12659 | |||||
* | Try to fix svn:keywords again. | Zac Medico | 2009-02-20 | 0 | -0/+0 | |
| | | | | svn path=/main/trunk/; revision=12658 | |||||
* | Add back Rev to svn:keywords (accidentally removed when setting Id). Thanks | Zac Medico | 2009-02-19 | 1 | -1/+1 | |
| | | | | | | to ABCD for reporting. svn path=/main/trunk/; revision=12656 | |||||
* | When displaying the list of failed packages, tell the number that failed. | Zac Medico | 2009-02-19 | 1 | -2/+7 | |
| | | | | | | Thanks to Jeremy Olexa <darkside@g.o> for the suggestion. svn path=/main/trunk/; revision=12655 | |||||
* | Make isvalidatom() identify empty slot as invalid (missing slot is valid) and | Zac Medico | 2009-02-19 | 2 | -0/+5 | |
| | | | | | | add a corresponding test case. svn path=/main/trunk/; revision=12654 | |||||
* | Optimize depgraph._dep_expand() to avoid calling pordbapi.cp_all(), | Zac Medico | 2009-02-19 | 3 | -18/+8 | |
| | | | | | | | | since it can be more efficient to call cp_list() on each category. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for the suggestion. svn path=/main/trunk/; revision=12653 | |||||
* | Decode terminal codes from binary when necessary, for python-3.0 compatibility | Zac Medico | 2009-02-19 | 1 | -0/+3 | |
| | | | | | | since sys.stdout is a text stream. svn path=/main/trunk/; revision=12649 | |||||
* | Handle ValueError when unpickling, since this can be triggered by an | Zac Medico | 2009-02-19 | 4 | -4/+4 | |
| | | | | | | unsupported pickle protocol. svn path=/main/trunk/; revision=12648 | |||||
* | Fix update() methods to work with python-3.0. | Zac Medico | 2009-02-19 | 1 | -8/+24 | |
| | | | | svn path=/main/trunk/; revision=12647 | |||||
* | Tweak exception handling indentation to avoid a bug in 2to3. | Zac Medico | 2009-02-19 | 1 | -2/+4 | |
| | | | | svn path=/main/trunk/; revision=12646 | |||||
* | For python-3.0 compatibility, encode strings as binary before trying to pass | Zac Medico | 2009-02-19 | 1 | -2/+2 | |
| | | | | | | them to hashlib. svn path=/main/trunk/; revision=12645 | |||||
* | Tweak code to avoid python-3.0 errors like this one: | Zac Medico | 2009-02-19 | 1 | -3/+9 | |
| | | | | | | SyntaxError: can not delete variable 'e' referenced in nested scope svn path=/main/trunk/; revision=12644 | |||||
* | Revert accidental python-3.0 syntax. | Zac Medico | 2009-02-19 | 1 | -2/+2 | |
| | | | | svn path=/main/trunk/; revision=12643 | |||||
* | For compatibility with python-3.0, open files in text mode where appropriate. | Zac Medico | 2009-02-19 | 5 | -6/+6 | |
| | | | | svn path=/main/trunk/; revision=12642 | |||||
* | For compatibility with python-3.0, always open streams for pickles in binary | Zac Medico | 2009-02-19 | 5 | -25/+15 | |
| | | | | | | mode. svn path=/main/trunk/; revision=12641 | |||||
* | For compatibility with python-3.0, inherit from ObjectProxy instead of | Zac Medico | 2009-02-19 | 1 | -89/+123 | |
| | | | | | | inheriting directly from file. svn path=/main/trunk/; revision=12640 | |||||
* | For python-3.0 compatibility, don't use string.letters. | Zac Medico | 2009-02-19 | 1 | -1/+1 | |
| | | | | svn path=/main/trunk/; revision=12639 | |||||
* | Use a regular expression for the file.name check. This replaces some odd | Zac Medico | 2009-02-19 | 1 | -15/+12 | |
| | | | | | | map() usage that 2to3 warns about. svn path=/main/trunk/; revision=12638 | |||||
* | Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode. | Zac Medico | 2009-02-19 | 1 | -3/+4 | |
| | | | | svn path=/main/trunk/; revision=12637 | |||||
* | Inside post_emerge(), skip the vardbapi counter check when in --pretend | Zac Medico | 2009-02-19 | 1 | -2/+2 | |
| | | | | | | | mode (significant performance improvement). Thanks to Marat Radchenko (slonopotamus) for reporting. svn path=/main/trunk/; revision=12636 | |||||
* | For python-3.0 compatibility, raise a real exception instead of a string. | Zac Medico | 2009-02-19 | 1 | -2/+2 | |
| | | | | svn path=/main/trunk/; revision=12635 | |||||
* | Bug #230483 - Convert glsa-check option parsing to use the optparse module. | Zac Medico | 2009-02-19 | 1 | -93/+71 | |
| | | | | | | | This replaces some code which triggers a traceback from 2to3. Thanks to Ali Polatel <hawking@g.o> for this patch. svn path=/main/trunk/; revision=12634 | |||||
* | For compatibility with python-3.0, use isinstance() instead of type(). | Zac Medico | 2009-02-19 | 4 | -20/+17 | |
| | | | | svn path=/main/trunk/; revision=12633 | |||||
* | Fix classes that implement __iter__() to copy it to their keys() method | Zac Medico | 2009-02-19 | 2 | -0/+10 | |
| | | | | | | when running under >=python-3.0. svn path=/main/trunk/; revision=12632 | |||||
* | Remove redundant ConfigLoaderKlass.__iter__() method. | Zac Medico | 2009-02-19 | 1 | -3/+0 | |
| | | | | svn path=/main/trunk/; revision=12631 | |||||
* | Implement UserDict.__contains__() and __iter__(). | Zac Medico | 2009-02-19 | 1 | -0/+6 | |
| | | | | svn path=/main/trunk/; revision=12630 | |||||
* | Implement a substitute for UserDict.UserDict so that code converted via | Zac Medico | 2009-02-19 | 2 | -5/+44 | |
| | | | | | | | | 2to3 will run: http://bugs.python.org/issue2876 svn path=/main/trunk/; revision=12629 | |||||
* | In python-3.0, the UserDict.DictMixin class has been replaced by | Zac Medico | 2009-02-19 | 3 | -32/+132 | |
| | | | | | | | | | | | | | Mapping and MutableMapping from the collections module, but 2to3 doesn't currently account for this change: http://bugs.python.org/issue2876 As a workaround for the above issue, implement Mapping and MutableMapping classes as substitutes for UserDict.DictMixin so that code converted via 2to3 will run. svn path=/main/trunk/; revision=12628 | |||||
* | Set svn:keywords Id on all files. | Zac Medico | 2009-02-18 | 19 | -19/+19 | |
| | | | | svn path=/main/trunk/; revision=12626 | |||||
* | Make save_ebuild_env() filter NOCOLOR, and remove related code from ebuild.sh | Zac Medico | 2009-02-18 | 2 | -13/+1 | |
| | | | | | | since that variable is not loaded from $T/environment anymore. svn path=/main/trunk/; revision=12625 | |||||
* | Call depgraph._dep_check_composite_db._clear_cache() inside | Zac Medico | 2009-02-18 | 1 | -1/+2 | |
| | | | | | | | depgraph._add_pkg() since _dep_check_composite_db._visible() is now affected by which packages are added to the graph. svn path=/main/trunk/; revision=12624 | |||||
* | Bug #253904 - Add a lookahead mechanism inside | Zac Medico | 2009-02-17 | 1 | -0/+14 | |
| | | | | | | | | depgraph._dep_check_composite_db._visible() which masks package choices that are likely to trigger slot conflicts. Thanks to Vlastimil Babka <caster@g.o> for the suggestion. svn path=/main/trunk/; revision=12623 | |||||
* | Fix grabfile_package() to preprocess atoms before passing them to | Zac Medico | 2009-02-17 | 1 | -1/+4 | |
| | | | | | | | isvalidatom() because isvalidatom() has gotten more strict since r12614. Thanks to ABCD for reporting. svn path=/main/trunk/; revision=12622 | |||||
* | Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable into | Zac Medico | 2009-02-16 | 1 | -0/+4 | |
| | | | | | | the fetch environment, so that --color=n is respected. svn path=/main/trunk/; revision=12621 | |||||
* | unify code for unpacking of tar files | Mike Frysinger | 2009-02-16 | 1 | -23/+13 | |
| | | | | svn path=/main/trunk/; revision=12620 | |||||
* | Fix broken references to DepPriority attributes. | Zac Medico | 2009-02-15 | 1 | -4/+6 | |
| | | | | svn path=/main/trunk/; revision=12619 | |||||
* | In dyn_package(), show a more informative die message if an error occurs when | Zac Medico | 2009-02-15 | 1 | -1/+1 | |
| | | | | | | creating the tarball. svn path=/main/trunk/; revision=12618 | |||||
* | Add a test case for the new case which is detected by isvalidatom(). | Zac Medico | 2009-02-15 | 1 | -0/+1 | |
| | | | | svn path=/main/trunk/; revision=12617 | |||||
* | Fix more false positives in isvalidatom() from previous commits. | Zac Medico | 2009-02-15 | 1 | -2/+3 | |
| | | | | svn path=/main/trunk/; revision=12616 | |||||
* | Fix isvalidatom() logic from previous commit to avoid false positives. | Zac Medico | 2009-02-15 | 1 | -1/+1 | |
| | | | | svn path=/main/trunk/; revision=12615 | |||||
* | Fix isvalidatom to properly identify an invalid atom such as | Zac Medico | 2009-02-15 | 1 | -0/+2 | |
| | | | | | | 'dev-java/nanoxml*'. Thanks to Vlastimil Babka <caster@g.o> for reporting. svn path=/main/trunk/; revision=12614 |