summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Fix KeyValuePairFileLoader to only split on '=' once and strip whitespaceZac Medico2009-03-111-3/+3
| | | | | | for keys and values. (trunk r12742) svn path=/main/branches/2.1.6/; revision=12991
* When ACCEPT_CHOSTS is set, enable CHOST masking for unbuilt ebuilds. ThisZac Medico2009-03-113-6/+18
| | | | | | | | behaves as a sanity check to protect people who are cross-compiling from accidentally merging an ebuild with CHOST set incorrectly. Thanks to Ned Ludd <solar@g.o> for reporting the problem. (trunk r12741) svn path=/main/branches/2.1.6/; revision=12990
* Use PORTAGE_USE when evaluating LICENSE inside portdbapi.gvisible().Zac Medico2009-03-111-1/+1
| | | | | | (trunk r12740) svn path=/main/branches/2.1.6/; revision=12989
* When fetch() is called and there is an existing file with the wrong size thatZac Medico2009-03-111-7/+15
| | | | | | | | | | is smaller than PORTAGE_FETCH_RESUME_MIN_SIZE, rename the file instead of deleting it. This is more friendly for cases in which the user is attempting to regenerate the digest but has not used `ebuild --force foo.ebuild manifest` like they're supposed to. Thanks to Patrick Lauer <patrick@g.o> for reporting. (trunk r12739) svn path=/main/branches/2.1.6/; revision=12988
* Don't give portage group write permissions on the mtimedb since it's notZac Medico2009-03-111-1/+2
| | | | | | really needed. (trunk r12738) svn path=/main/branches/2.1.6/; revision=12987
* Thanks to Petteri Räty <betelgeuse@gentoo.org> for this new cache module whichZac Medico2009-03-111-0/+163
| | | | | | | uses extended attributes (via pyxattr) to attach metadata cache directly to the ebuild files themselves. (trunk r12737) svn path=/main/branches/2.1.6/; revision=12986
* Remove redundant long(_mtime_) conversion since template handles it now.Zac Medico2009-03-111-1/+1
| | | | | | (trunk r12736) svn path=/main/branches/2.1.6/; revision=12985
* * Fix portage.cache.template.database.__getitem__() to validate the _mtime_Zac Medico2009-03-114-25/+24
| | | | | | | | | | | field and raise a CacheCorruption exception if necessary. * Make _mtime_ and _eclasses_ validation code in portdbapi and mirror_cache() assume that these fields are the correct type (otherwise a CacheCorruption exeception should be raised earlier). * Fix the sqlite module to implement _getitem() so that it properly inherits __getitem__() _mtime_ and _eclasses_ handling. (trunk r12735) svn path=/main/branches/2.1.6/; revision=12984
* Skip the code from bug #259954 when $ROOT != / since it shouldn't matter ifZac Medico2009-03-111-0/+6
| | | | | | there are unsatisfied system runtime deps in this case. (trunk r12734) svn path=/main/branches/2.1.6/; revision=12983
* In _ensure_default_encoding(), make sure the default encoding is normalized.Zac Medico2009-03-111-1/+1
| | | | | | (trunk r12732) svn path=/main/branches/2.1.6/; revision=12981
* Add support to _ensure_default_encoding() for the same ascii and utf_8Zac Medico2009-03-111-2/+12
| | | | | | aliases that encodings.aliases has. (trunk r12731) svn path=/main/branches/2.1.6/; revision=12980
* Make Atom instances consume less memory by implementing str methods at theZac Medico2009-03-111-9/+61
| | | | | | class level instead of referencing bound str methods. (trunk r12730) svn path=/main/branches/2.1.6/; revision=12979
* Open then temp file in text mode for py3k compatibility. (trunk r12728)Zac Medico2009-03-111-1/+1
| | | | svn path=/main/branches/2.1.6/; revision=12978
* Open the temp file in text mode for py3k compatibility. (trunk r12727)Zac Medico2009-03-111-2/+1
| | | | svn path=/main/branches/2.1.6/; revision=12977
* Open the temp file in text mode for py3k compatibility. (trunk r12726)Zac Medico2009-03-111-3/+3
| | | | svn path=/main/branches/2.1.6/; revision=12976
* Fix PipeReader and PipeReaderTestCase to work with binary strings in py3k.Zac Medico2009-03-112-1/+6
| | | | | | (trunk r12720) svn path=/main/branches/2.1.6/; revision=12975
* Loosen EMakeParallelDisabled.re so it can match more variations. (trunk r12719)Zac Medico2009-03-111-1/+1
| | | | svn path=/main/branches/2.1.6/; revision=12974
* Add a new upstream.workaround check for hardcoded MAKEOPTS=-j1 (previouslyZac Medico2009-03-112-2/+9
| | | | | | | only emake -j1 was recognized). Thanks to Maciej Mrozowski <reavertm@poczta.fm> for this patch. (trunk r12718) svn path=/main/branches/2.1.6/; revision=12973
* Fix test breakage due to change in calling order of AsynchronousTask startZac Medico2009-03-111-5/+7
| | | | | | listeners from r12713. (trunk r12717) svn path=/main/branches/2.1.6/; revision=12972
* Fix a case in which a SRC_URI is incorrectly idendified as invalid, and addZac Medico2009-03-112-0/+4
| | | | | | a corresponding test case. Thanks to Jacob Floyd for reporting. (trunk r12716) svn path=/main/branches/2.1.6/; revision=12971
* Remove recursion code from Scheduler._system_merge_started() since indirectZac Medico2009-03-111-38/+13
| | | | | | deps are checked when the corresponding parent is merged. (trunk r12715) svn path=/main/branches/2.1.6/; revision=12970
* In traversing deps to add to Scheduler._unsatisfied_system_deps, only traverseZac Medico2009-03-111-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. (trunk r12714) svn path=/main/branches/2.1.6/; revision=12969
* Bug #259954 - Do not spawn parallel build when the system is in a fragileZac Medico2009-03-111-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). (trunk r12713) svn path=/main/branches/2.1.6/; revision=12968
* Remove stray parenthesis. (trunk r12711)Zac Medico2009-03-111-1/+1
| | | | svn path=/main/branches/2.1.6/; revision=12966
* Inside depgraph._merge_order_bias(), promote deep system runtime deps towardZac Medico2009-03-111-32/+60
| | | | | | | the front of the merge list. This should help optimize merge order to account for implicit system dependencies. (trunk r12710) svn path=/main/branches/2.1.6/; revision=12965
* 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
* 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-117-12/+12
| | | | 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