summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement BlockerDepPriority.__str__(). (trunk r12709)Zac Medico2009-03-111-0/+3
| | | | svn path=/main/branches/2.1.6/; revision=12964
* Fix typo in DepPriority.__str__(). (trunk r12708)Zac Medico2009-03-111-1/+1
| | | | svn path=/main/branches/2.1.6/; revision=12963
* Implement lazy evaluation of USE_EXPAND variables in config.setcpv(), sinceZac Medico2009-03-111-58/+111
| | | | | | | | | those variables are only needed when an ebuild shell is spawned. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for testing this patch. He reports a 14% reduction in the time consumed for `emerge -vpe world` on an ARM device (from 3m12.008s to 2m45.055s). (trunk r12707) svn path=/main/branches/2.1.6/; revision=12962
* In mirror_cache(), normalize EAPI by mapping EAPI=0 to empty. (trunk r12706)Zac Medico2009-03-111-3/+4
| | | | svn path=/main/branches/2.1.6/; revision=12961
* Bug #259882 - Disable the ignore-previously-merged option by default sinceZac Medico2009-03-111-1/+3
| | | | | | | emerge's confmem already provides similar functionality which is a little safer. (trunk r12705) svn path=/main/branches/2.1.6/; revision=12960
* If deepcopy() raises a TypeError for a lazy item that has been added via aZac Medico2009-03-111-3/+15
| | | | | | | call to LazyItemsDict.addLazySingleton(), automatically evaluate the the singleton and instead call deepcopy() on the result. (trunk r12704) svn path=/main/branches/2.1.6/; revision=12959
* Make USE_EXPAND wildcard expansion more efficient, and prevent possibleZac Medico2009-03-111-4/+5
| | | | | | duplicates. (trunk r12703) svn path=/main/branches/2.1.6/; revision=12958
* Fix breakage in USE_EXPAND wildcard handling, from r12697. (trunk r12702)Zac Medico2009-03-111-2/+5
| | | | svn path=/main/branches/2.1.6/; revision=12957
* Fix headers that contain $Header instead of $Id. (trunk r12701)Zac Medico2009-03-119-15/+15
| | | | svn path=/main/branches/2.1.6/; revision=12956
* In LazyItemsDict, avoid storing empty lists and dicts when no positional orZac Medico2009-03-111-0/+8
| | | | | | keyword arguments are given. (trunk r12700) svn path=/main/branches/2.1.6/; revision=12955
* In config.setcpv(), increase efficiency by filtering USE with IUSE beforeZac Medico2009-03-111-5/+5
| | | | | | | calculating USE_EXPAND variables. Also use a generator expression instead of a list comprehension in the USE_EXPAND generation code. (trunk r12697) svn path=/main/branches/2.1.6/; revision=12954
* Fix getmaskingstatus() so that it doesn't inappropriately return aZac Medico2009-03-111-3/+7
| | | | | | | 'missing keyword' mask is some cases when the user has ** in package.keywords. Thanks to Raúl Porcel <armin76@g.o> for reporting. (trunk r12696) svn path=/main/branches/2.1.6/; revision=12953
* Fix default_encoding logic in _ensure_default_encoding(). (trunk r12695)Zac Medico2009-03-111-1/+2
| | | | svn path=/main/branches/2.1.6/; revision=12952
* Reorganize _ensure_default_encoding(). (trunk r12694)Zac Medico2009-03-111-47/+46
| | | | svn path=/main/branches/2.1.6/; revision=12951
* Don't try to call setdefaultencoding() since it's not intended to be called.Zac Medico2009-03-111-10/+6
| | | | | | (trunk r12692) svn path=/main/branches/2.1.6/; revision=12950
* When displaying reverse dependencies in verbose --depclean/--prune output,Zac Medico2009-03-111-2/+11
| | | | | | sort the parent packages by cpv. (trunk r12691) svn path=/main/branches/2.1.6/; revision=12949
* Add support in _ensure_default_encoding(), add support for utf_8 and fallZac Medico2009-03-111-30/+98
| | | | | | | back to utf_8 if the encoding returned by sys.getdefaultencoding() is unavailable. (trunk r12688) svn path=/main/branches/2.1.6/; revision=12948
* When decoding term codes inside the JobStatusDisplay constructor, use theZac Medico2009-03-111-1/+2
| | | | | | | 'replace' error handling scheme in order to avoid triggering a potential UnicodeError. (trunk r12687) svn path=/main/branches/2.1.6/; revision=12947
* In EbuildFetchonly.execute(), skip builddir creation when the ebuild doesZac Medico2009-03-111-4/+26
| | | | | | | not set RESTRICT=fetch (since it's not possible for pkg_nofetch to be executed in this case). (trunk r12686) svn path=/main/branches/2.1.6/; revision=12946
* Avoid spurious CCACHE_DIR permissions adjustments when fetching withZac Medico2009-03-111-1/+4
| | | | | | | a temporary PORTAGE_TMPDIR setting (for fetchonly). Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for reporting. (trunk r12685) svn path=/main/branches/2.1.6/; revision=12945
* The python that's inside stage 1 or 2 is built with a minimalZac Medico2009-03-111-0/+58
| | | | | | | | | | | | | | configuration which does not include the /usr/lib/pythonX.Y/encodings directory. This results in error like the following: LookupError: no codec search functions registered: can't find encoding In order to solve this problem, detect it early and manually register a search function for the ascii codec. Starting with python-3.0 this problem is more noticeable because of stricter handling of encoding and decoding between strings of characters and bytes. (trunk r12684) svn path=/main/branches/2.1.6/; revision=12944
* Use a lock to ensure that threaded code doesn't cause problems with proxyZac Medico2009-03-111-15/+36
| | | | | | registration and unregistration. (trunk r12683) svn path=/main/branches/2.1.6/; revision=12943
* Use lazyimport to avoid importing the portage.elog module when portage isZac Medico2009-03-111-2/+2
| | | | | | initially imported. (trunk r12682) svn path=/main/branches/2.1.6/; revision=12942
* Use lazyimport to avoid importing the dep, output, update, and versionsZac Medico2009-03-119-26/+21
| | | | | | modules when portage is initially imported. (trunk r12681) svn path=/main/branches/2.1.6/; revision=12941
* 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