summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Use lazyimport to avoid importing the checksum, locks, and util modulesZac Medico2009-03-1112-36/+81
| | | | | | when portage is initially imported. (trunk r12680) svn path=/main/branches/2.1.6/; revision=12940
* Fix _LazyImportFrom to use the correct module name when registering andZac Medico2009-03-111-11/+14
| | | | | | unregistering. (trunk r12679) svn path=/main/branches/2.1.6/; revision=12939
* Make lazyimport proxies trigger automatic destruction of other proxies forZac Medico2009-03-111-0/+33
| | | | | | | modules that have been imported. This way, destruction of a single proxy can trigger destruction of all the rest. (trunk r12678) svn path=/main/branches/2.1.6/; revision=12938
* Fix typo in __all__. (trunk r12677)Zac Medico2009-03-111-1/+1
| | | | svn path=/main/branches/2.1.6/; revision=12937
* Reduce bloat in portage.util by splitting ObjectProxy and lazyimport into aZac Medico2009-03-115-184/+215
| | | | | | new portage.proxy package. (trunk r12676) svn path=/main/branches/2.1.6/; revision=12936
* Make lazy_import() skip proxy creation for modules that already existZac Medico2009-03-111-8/+19
| | | | | | in sys.modules. (trunk r12675) svn path=/main/branches/2.1.6/; revision=12935
* Make the UserDict and LazyItemsDict constructors use an optional positionalZac Medico2009-03-113-8/+25
| | | | | | argument instead of a keyword argument. (trunk r12674) svn path=/main/branches/2.1.6/; revision=12934
* In config.setcpv(), use LazyItemsDict to implement lazy evaluation ofZac Medico2009-03-112-8/+58
| | | | | | | | | | | PORTAGE_IUSE. The PORTAGE_IUSE value is lazily evaluated since re.escape() is slow and the value is only used when an ebuild phase needs to be executed (it's used only to generate QA notices). Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for identifying this performance issue and submitting the initial patch which used a memoization approach instead of lazy evaluation. (trunk r12673) svn path=/main/branches/2.1.6/; revision=12933
* In LazyItemsDict, when a singleton is instantiated, replace the wrapper withZac Medico2009-03-111-12/+22
| | | | | | | the singleton since the wrapper is no longer needed at this point. (trunk r12672) svn path=/main/branches/2.1.6/; revision=12932
* Revert r12639 and use string.ascii_letters for python-3.0 compatibility.Zac Medico2009-03-111-1/+2
| | | | | | (trunk r12669) svn path=/main/branches/2.1.6/; revision=12931
* Inside portage.spawn(), open files for logfile handling in binary mode, forZac Medico2009-03-111-3/+3
| | | | | | compatibility with python-3.0. (trunk r12668) svn path=/main/branches/2.1.6/; revision=12930
* For python-3.0 compatibility, open files in binary mode insideZac Medico2009-03-111-3/+3
| | | | | | SpawnProcess._start(). (trunk r12666) svn path=/main/branches/2.1.6/; revision=12929
* When loading vdb_metadata.pickle inside vardbapi._aux_cache_init(), inZac Medico2009-03-111-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. (trunk r12665) svn path=/main/branches/2.1.6/; revision=12928
* Add a cross reference from FEATURES=lmirror docs to the "local" mirror docsZac Medico2009-03-111-0/+3
| | | | | | in portage(5). (trunk r12664) svn path=/main/branches/2.1.6/; revision=12927
* In python-3.0, integer division results in a float, so convert back to int.Zac Medico2009-03-111-1/+1
| | | | | | (trunk r12663) svn path=/main/branches/2.1.6/; revision=12926
* Fix StringIO imports so that 2to3 can handle them. Also, replace shlex +Zac Medico2009-03-115-30/+20
| | | | | | StringIO usage with shlex.split() where appropriate. (trunk r12662) svn path=/main/branches/2.1.6/; revision=12925
* Add a new portage.utils.lazy_import() function which behaves similar to theZac Medico2009-03-113-30/+126
| | | | | | snakeoil.demandload.demandload() function. (trunk r12661) svn path=/main/branches/2.1.6/; revision=12924
* When displaying the list of failed packages, tell the number that failed.Zac Medico2009-03-111-2/+7
| | | | | | Thanks to Jeremy Olexa <darkside@g.o> for the suggestion. (trunk r12655) svn path=/main/branches/2.1.6/; revision=12923
* Make isvalidatom() identify empty slot as invalid (missing slot is valid) andZac Medico2009-03-112-0/+5
| | | | | | add a corresponding test case. (trunk r12654) svn path=/main/branches/2.1.6/; revision=12922
* Optimize depgraph._dep_expand() to avoid calling pordbapi.cp_all(),Zac Medico2009-03-113-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. (trunk r12653) svn path=/main/branches/2.1.6/; revision=12921
* Decode terminal codes from binary when necessary, for python-3.0 compatibilityZac Medico2009-03-111-0/+3
| | | | | | since sys.stdout is a text stream. (trunk r12649) svn path=/main/branches/2.1.6/; revision=12920
* Handle ValueError when unpickling, since this can be triggered by anZac Medico2009-03-114-4/+4
| | | | | | unsupported pickle protocol. (trunk r12648) svn path=/main/branches/2.1.6/; revision=12919
* Fix update() methods to work with python-3.0. (trunk r12647)Zac Medico2009-03-111-8/+24
| | | | svn path=/main/branches/2.1.6/; revision=12918
* Tweak exception handling indentation to avoid a bug in 2to3. (trunk r12646)Zac Medico2009-03-111-2/+4
| | | | svn path=/main/branches/2.1.6/; revision=12917
* Tweak code to avoid python-3.0 errors like this one:Zac Medico2009-03-111-3/+9
| | | | | | | SyntaxError: can not delete variable 'e' referenced in nested scope (trunk r12644) svn path=/main/branches/2.1.6/; revision=12916
* Revert accidental python-3.0 syntax. (trunk r12643)Zac Medico2009-03-111-2/+2
| | | | svn path=/main/branches/2.1.6/; revision=12915
* For compatibility with python-3.0, open files in text mode where appropriate.Zac Medico2009-03-115-6/+6
| | | | | | (trunk r12642) svn path=/main/branches/2.1.6/; revision=12914
* For compatibility with python-3.0, always open streams for pickles in binaryZac Medico2009-03-115-23/+13
| | | | | | mode. (trunk r12641) svn path=/main/branches/2.1.6/; revision=12913
* For compatibility with python-3.0, inherit from ObjectProxy instead ofZac Medico2009-03-111-89/+123
| | | | | | inheriting directly from file. (trunk r12640) svn path=/main/branches/2.1.6/; revision=12912
* For python-3.0 compatibility, don't use string.letters. (trunk r12639)Zac Medico2009-03-111-1/+1
| | | | svn path=/main/branches/2.1.6/; revision=12911
* Use a regular expression for the file.name check. This replaces some oddZac Medico2009-03-111-15/+12
| | | | | | map() usage that 2to3 warns about. (trunk r12638) svn path=/main/branches/2.1.6/; revision=12910
* Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode.Zac Medico2009-03-111-3/+4
| | | | | | (trunk r12637) svn path=/main/branches/2.1.6/; revision=12909
* Inside post_emerge(), skip the vardbapi counter check when in --pretendZac Medico2009-03-111-2/+2
| | | | | | | mode (significant performance improvement). Thanks to Marat Radchenko (slonopotamus) for reporting. (trunk r12636) svn path=/main/branches/2.1.6/; revision=12908
* For python-3.0 compatibility, raise a real exception instead of a string.Zac Medico2009-03-111-2/+2
| | | | | | (trunk r12635) svn path=/main/branches/2.1.6/; revision=12907
* For compatibility with python-3.0, use isinstance() instead of type().Zac Medico2009-03-114-20/+17
| | | | | | (trunk r12633) svn path=/main/branches/2.1.6/; revision=12906
* Fix classes that implement __iter__() to copy it to their keys() methodZac Medico2009-03-112-0/+10
| | | | | | when running under >=python-3.0. (trunk r12632) svn path=/main/branches/2.1.6/; revision=12905
* Remove redundant ConfigLoaderKlass.__iter__() method. (trunk r12631)Zac Medico2009-03-111-3/+0
| | | | svn path=/main/branches/2.1.6/; revision=12904
* Implement UserDict.__contains__() and __iter__(). (trunk r12630)Zac Medico2009-03-111-0/+6
| | | | svn path=/main/branches/2.1.6/; revision=12903
* Implement a substitute for UserDict.UserDict so that code converted viaZac Medico2009-03-112-5/+44
| | | | | | | | 2to3 will run: http://bugs.python.org/issue2876 (trunk r12629) svn path=/main/branches/2.1.6/; revision=12902
* In python-3.0, the UserDict.DictMixin class has been replaced byZac Medico2009-03-113-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. (trunk r12628) svn path=/main/branches/2.1.6/; revision=12901
* Set svn:keywords Id on all files.Zac Medico2009-03-110-0/+0
| | | | svn path=/main/branches/2.1.6/; revision=12900
* Make save_ebuild_env() filter NOCOLOR, and remove related code from ebuild.shZac Medico2009-03-112-13/+1
| | | | | | since that variable is not loaded from $T/environment anymore. (trunk r12625) svn path=/main/branches/2.1.6/; revision=12899
* Bug #253904 - Add a lookahead mechanism insideZac Medico2009-03-111-1/+16
| | | | | | | | | 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. (trunk r12622:12624) svn path=/main/branches/2.1.6/; revision=12898
* Fix grabfile_package() to preprocess atoms before passing them toZac Medico2009-03-111-1/+4
| | | | | | | isvalidatom() because isvalidatom() has gotten more strict since r12614. Thanks to ABCD for reporting. (trunk r12622) svn path=/main/branches/2.1.6/; revision=12897
* Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable intoZac Medico2009-03-111-0/+4
| | | | | | the fetch environment, so that --color=n is respected. (trunk r12621) svn path=/main/branches/2.1.6/; revision=12896
* (trunk r12620)Zac Medico2009-03-111-23/+13
| | | | svn path=/main/branches/2.1.6/; revision=12895
* Fix broken references to DepPriority attributes. (trunk r12619)Zac Medico2009-03-111-4/+6
| | | | svn path=/main/branches/2.1.6/; revision=12894
* In dyn_package(), show a more informative die message if an error occurs whenZac Medico2009-03-111-1/+1
| | | | | | creating the tarball. (trunk r12618) svn path=/main/branches/2.1.6/; revision=12893
* Fix isvalidatom to properly identify an invalid atom such asZac Medico2009-03-112-1/+5
| | | | | | | 'dev-java/nanoxml*'. Thanks to Vlastimil Babka <caster@g.o> for reporting. (trunk r12613:12617) svn path=/main/branches/2.1.6/; revision=12892
* Fix merge order calculation so that the circular runtime path isn't enteredZac Medico2009-03-111-1/+2
| | | | | | | | | when it's possible to select a node that only has unsatisfied PDEPEND. This reverts an unintended change from the patch for bug #250020, and solves a problem with libperl being merged after perl when building stage 1. (trunk r12613) svn path=/main/branches/2.1.6/; revision=12891