summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Open the temp file in text mode for py3k compatibility.Zac Medico2009-02-271-1/+1
| | | | svn path=/main/trunk/; revision=12723
* Use unicode() so that 2to3 handles py3k compatibility.Zac Medico2009-02-271-5/+1
| | | | svn path=/main/trunk/; revision=12722
* Fix CommandOutputSet to decode binary command output in py3k.Zac Medico2009-02-271-2/+6
| | | | svn path=/main/trunk/; revision=12721
* Fix PipeReader and PipeReaderTestCase to work with binary strings in py3k.Zac Medico2009-02-272-1/+6
| | | | svn path=/main/trunk/; revision=12720
* Loosen EMakeParallelDisabled.re so it can match more variations.Zac Medico2009-02-271-1/+1
| | | | svn path=/main/trunk/; revision=12719
* Add a new upstream.workaround check for hardcoded MAKEOPTS=-j1 (previouslyZac Medico2009-02-272-2/+9
| | | | | | | only emake -j1 was recognized). Thanks to Maciej Mrozowski <reavertm@poczta.fm> for this patch. svn path=/main/trunk/; revision=12718
* Fix test breakage due to change in calling order of AsynchronousTask startZac Medico2009-02-271-5/+7
| | | | | | listeners from r12713. svn path=/main/trunk/; revision=12717
* Fix a case in which a SRC_URI is incorrectly idendified as invalid, and addZac Medico2009-02-272-0/+4
| | | | | | a corresponding test case. Thanks to Jacob Floyd for reporting. svn path=/main/trunk/; revision=12716
* Remove recursion code from Scheduler._system_merge_started() since indirectZac Medico2009-02-261-38/+13
| | | | | | deps are checked when the corresponding parent is merged. svn path=/main/trunk/; revision=12715
* In traversing deps to add to Scheduler._unsatisfied_system_deps, only traverseZac Medico2009-02-261-1/+8
| | | | | | | | completed 'merge' nodes since those are the only ones that need to be checked for unsatisfied runtime deps, and it's normal for nodes that aren't yet complete to have unsatisfied runtime deps. svn path=/main/trunk/; revision=12714
* Bug #259954 - Do not spawn parallel build when the system is in a fragileZac Medico2009-02-261-1/+65
| | | | | | | state due to a system package having an unsatisfied runtime dependency (such as sys-libs/pam having an unsatisfied PDEPEND on sys-auth/pambase). svn path=/main/trunk/; revision=12713
* Remove stray parenthesis.Zac Medico2009-02-261-1/+1
| | | | svn path=/main/trunk/; revision=12711
* Inside depgraph._merge_order_bias(), promote deep system runtime deps towardZac Medico2009-02-261-32/+60
| | | | | | | the front of the merge list. This should help optimize merge order to account for implicit system dependencies. svn path=/main/trunk/; revision=12710
* Implement BlockerDepPriority.__str__().Zac Medico2009-02-261-0/+3
| | | | svn path=/main/trunk/; revision=12709
* Fix typo in DepPriority.__str__().Zac Medico2009-02-251-1/+1
| | | | svn path=/main/trunk/; revision=12708
* Implement lazy evaluation of USE_EXPAND variables in config.setcpv(), sinceZac Medico2009-02-251-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). svn path=/main/trunk/; revision=12707
* In mirror_cache(), normalize EAPI by mapping EAPI=0 to empty.Zac Medico2009-02-251-3/+4
| | | | svn path=/main/trunk/; revision=12706
* If deepcopy() raises a TypeError for a lazy item that has been added via aZac Medico2009-02-241-3/+15
| | | | | | | call to LazyItemsDict.addLazySingleton(), automatically evaluate the the singleton and instead call deepcopy() on the result. svn path=/main/trunk/; revision=12704
* Make USE_EXPAND wildcard expansion more efficient, and prevent possibleZac Medico2009-02-231-4/+5
| | | | | | duplicates. svn path=/main/trunk/; revision=12703
* Fix breakage in USE_EXPAND wildcard handling, from r12697.Zac Medico2009-02-231-2/+5
| | | | svn path=/main/trunk/; revision=12702
* Fix headers that contain $Header instead of $Id.Zac Medico2009-02-237-12/+12
| | | | svn path=/main/trunk/; revision=12701
* In LazyItemsDict, avoid storing empty lists and dicts when no positional orZac Medico2009-02-231-0/+8
| | | | | | keyword arguments are given. svn path=/main/trunk/; revision=12700
* In config.setcpv(), increase efficiency by filtering USE with IUSE beforeZac Medico2009-02-231-5/+5
| | | | | | | calculating USE_EXPAND variables. Also use a generator expression instead of a list comprehension in the USE_EXPAND generation code. svn path=/main/trunk/; revision=12697
* Fix getmaskingstatus() so that it doesn't inappropriately return aZac Medico2009-02-231-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. svn path=/main/trunk/; revision=12696
* Fix default_encoding logic in _ensure_default_encoding().Zac Medico2009-02-231-1/+2
| | | | svn path=/main/trunk/; revision=12695
* Reorganize _ensure_default_encoding().Zac Medico2009-02-231-47/+46
| | | | svn path=/main/trunk/; revision=12694
* Revert vardbapi._owners_cache_version and unicode handling since it needsZac Medico2009-02-231-3/+3
| | | | | | some more work. svn path=/main/trunk/; revision=12693
* Don't try to call setdefaultencoding() since it's not intended to be called.Zac Medico2009-02-231-10/+6
| | | | svn path=/main/trunk/; revision=12692
* When displaying reverse dependencies in verbose --depclean/--prune output,Zac Medico2009-02-231-2/+11
| | | | | | sort the parent packages by cpv. svn path=/main/trunk/; revision=12691
* Bump vardbapi._owners_cache_version from 1 to 2 since hash value encodingZac Medico2009-02-231-1/+1
| | | | | | is now hardcoded as utf_8. svn path=/main/trunk/; revision=12690
* When encoding strings inside vardbapi._counter_hash() andZac Medico2009-02-231-2/+4
| | | | | | | | | vardbapi._owners_cache._hash_str(), use 'backslashreplace' in order to avoid potential UnicodeError exceptions. Use constant ascii and utf_8 codecs, respectively, since these codecs are guaranteed to be available by _ensure_default_encoding(). svn path=/main/trunk/; revision=12689
* Add support in _ensure_default_encoding(), add support for utf_8 and fallZac Medico2009-02-231-30/+98
| | | | | | | back to utf_8 if the encoding returned by sys.getdefaultencoding() is unavailable. svn path=/main/trunk/; revision=12688
* When decoding term codes inside the JobStatusDisplay constructor, use theZac Medico2009-02-221-1/+2
| | | | | | | 'replace' error handling scheme in order to avoid triggering a potential UnicodeError. svn path=/main/trunk/; revision=12687
* In EbuildFetchonly.execute(), skip builddir creation when the ebuild doesZac Medico2009-02-221-4/+26
| | | | | | | not set RESTRICT=fetch (since it's not possible for pkg_nofetch to be executed in this case). svn path=/main/trunk/; revision=12686
* Avoid spurious CCACHE_DIR permissions adjustments when fetching withZac Medico2009-02-221-1/+4
| | | | | | | a temporary PORTAGE_TMPDIR setting (for fetchonly). Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for reporting. svn path=/main/trunk/; revision=12685
* The python that's inside stage 1 or 2 is built with a minimalZac Medico2009-02-221-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. svn path=/main/trunk/; revision=12684
* Use a lock to ensure that threaded code doesn't cause problems with proxyZac Medico2009-02-221-15/+36
| | | | | | registration and unregistration. svn path=/main/trunk/; revision=12683
* Use lazyimport to avoid importing the portage.elog module when portage isZac Medico2009-02-221-2/+2
| | | | | | initially imported. svn path=/main/trunk/; revision=12682
* Use lazyimport to avoid importing the dep, output, update, and versionsZac Medico2009-02-229-26/+21
| | | | | | modules when portage is initially imported. svn path=/main/trunk/; revision=12681
* Use lazyimport to avoid importing the checksum, locks, and util modulesZac Medico2009-02-2212-36/+81
| | | | | | when portage is initially imported. svn path=/main/trunk/; revision=12680
* Fix _LazyImportFrom to use the correct module name when registering andZac Medico2009-02-221-11/+14
| | | | | | unregistering. svn path=/main/trunk/; revision=12679
* Make lazyimport proxies trigger automatic destruction of other proxies forZac Medico2009-02-221-0/+33
| | | | | | | modules that have been imported. This way, destruction of a single proxy can trigger destruction of all the rest. svn path=/main/trunk/; revision=12678
* Fix typo in __all__.Zac Medico2009-02-221-1/+1
| | | | svn path=/main/trunk/; revision=12677
* Reduce bloat in portage.util by splitting ObjectProxy and lazyimport into aZac Medico2009-02-225-184/+215
| | | | | | new portage.proxy package. svn path=/main/trunk/; revision=12676
* Make lazy_import() skip proxy creation for modules that already existZac Medico2009-02-221-8/+19
| | | | | | in sys.modules. svn path=/main/trunk/; revision=12675
* Make the UserDict and LazyItemsDict constructors use an optional positionalZac Medico2009-02-213-8/+25
| | | | | | argument instead of a keyword argument. svn path=/main/trunk/; revision=12674
* In config.setcpv(), use LazyItemsDict to implement lazy evaluation ofZac Medico2009-02-212-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. svn path=/main/trunk/; revision=12673
* In LazyItemsDict, when a singleton is instantiated, replace the wrapper withZac Medico2009-02-211-12/+22
| | | | | | the singleton since the wrapper is no longer needed at this point. svn path=/main/trunk/; revision=12672
* Revert r12639 and use string.ascii_letters for python-3.0 compatibility.Zac Medico2009-02-211-1/+2
| | | | svn path=/main/trunk/; revision=12669
* Inside portage.spawn(), open files for logfile handling in binary mode, forZac Medico2009-02-211-3/+3
| | | | | | compatibility with python-3.0. svn path=/main/trunk/; revision=12668