summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Just use integer mtime if no fractional seconds are found in the search.Zac Medico2009-12-111-1/+4
| | | | svn path=/main/trunk/; revision=15040
* Tweak movefile() timestamp preservation code to maximize precision for oldZac Medico2009-12-111-21/+21
| | | | | | timestamps that are closer to the epoch. svn path=/main/trunk/; revision=15039
* Add missing line from previous commit.Zac Medico2009-12-111-0/+1
| | | | svn path=/main/trunk/; revision=15038
* In movefile() timestamp preservation code, use another loop to search forZac Medico2009-12-111-0/+9
| | | | | | another digit of precision. svn path=/main/trunk/; revision=15037
* Add EAPI to the whitelist to ensure it's always available as early as possible.Zac Medico2009-12-111-1/+1
| | | | svn path=/main/trunk/; revision=15036
* Add EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled.Zac Medico2009-12-116-18/+18
| | | | svn path=/main/trunk/; revision=15035
* Enable xz unpack for EAPI 3_pre2.Zac Medico2009-12-111-1/+1
| | | | svn path=/main/trunk/; revision=15034
* Add support for EAPI 3_pre2.Zac Medico2009-12-111-1/+1
| | | | svn path=/main/trunk/; revision=15033
* In config.environ(), only export ED, EPREFIX, and EROOT to the ebuildZac Medico2009-12-111-0/+6
| | | | | | | environment starting with EAPI 3 (so people won't write ebuilds that are incompatible with older package managers). svn path=/main/trunk/; revision=15032
* Don't filter/interfere with prefix variables unless they are supported by theZac Medico2009-12-111-1/+12
| | | | | | current EAPI. svn path=/main/trunk/; revision=15031
* Filter prefix variables ED, EPREFIX, and EROOT insideZac Medico2009-12-112-3/+3
| | | | | | | | | | | | | | | | filter_readonly_variables() but don't mark them readonly for now since some ebuilds/eclasses try to assign EROOT (such as kde4-base_pkg_setup) which causes the whole bash shell to exit like this: >>> Extracting info * CPV: kde-base/oxygen-icons-4.3.4 * REPO: gentoo * USE: elibc_glibc kernel_linux test userland_GNU x86 /var/tmp/portage/kde-base/oxygen-icons-4.3.4/temp/environment: line 2781: EROOT: readonly variable Also, add ED to the environment blacklist. svn path=/main/trunk/; revision=15030
* Don't use lazy import for portage.cache.mappings because it's imported anyway.Zac Medico2009-12-111-8/+6
| | | | svn path=/main/trunk/; revision=15029
* Use collections.OrderedDict when available (python-2.7) and fall back toZac Medico2009-12-112-2/+10
| | | | | | | | portage.cache.mappings.OrderedDict for older python. Also, use OrderedDict inside fetch() so that files are fetched in the order that they appear in SRC_URI. svn path=/main/trunk/; revision=15028
* fix definition regarding slashes for EPREFIX, D, ED and EROOTFabian Groffen2009-12-101-9/+14
| | | | svn path=/main/trunk/; revision=15026
* Implement forward compatible Prefix support. This makes EPREFIX, ED andFabian Groffen2009-12-103-32/+67
| | | | | | | | | | | EROOT available to the ebuild environment, and updates the manpage accordingly. EPREFIX is hardwired to the empty string, and not configurable. For that, the prefix branch should be used for now. This should satisfy the requirements for EAPI=3. svn path=/main/trunk/; revision=15024
* Fix introspection code in fetch() so that it works correctly when myuris isZac Medico2009-12-101-1/+2
| | | | | | an OrderedDict instance. This fixes broken fetching for some packages. svn path=/main/trunk/; revision=15019
* Remove extra comman in comment.Zac Medico2009-12-101-1/+1
| | | | svn path=/main/trunk/; revision=15015
* Don't enable EAPI 4_pre1 yet.Zac Medico2009-12-101-1/+1
| | | | svn path=/main/trunk/; revision=15014
* Handle permission problems when trying to cache the remote Packages fileZac Medico2009-12-101-4/+11
| | | | | | from a binhost. Thanks to Jeremy Olexa <darkside@g.o> for reporting. svn path=/main/trunk/; revision=14997
* Detect cases when long(stat_obj.st_mtime) != stat_obj[stat.ST_MTIME] due toZac Medico2009-12-101-1/+19
| | | | | | | rounding up, and truncate digits as necessary to preserve the integral seconds portion of the mtime. svn path=/main/trunk/; revision=14996
* In movefile(), always use stat_obj[stat.ST_MTIME] for the integral timestampZac Medico2009-12-091-3/+6
| | | | | | | which is returned, since the stat_obj.st_mtime float attribute rounds *up* if the nanosecond part of the timestamp is 999999881 ns or greater. svn path=/main/trunk/; revision=14995
* Remove obsolete env-update.sh script.Zac Medico2009-12-091-219/+0
| | | | svn path=/main/trunk/; revision=14992
* Add localization variables (LANG and LC_*) to the environment whitelist andZac Medico2009-12-092-0/+12
| | | | | | | filter them from the saved environment (so user settings override those of binary packages). Thanks to Fabio Erculiani <lxnay@g.o> for reporting. svn path=/main/trunk/; revision=14975
* When overridding sys.std* in python2, use binary streams.Zac Medico2009-12-091-6/+8
| | | | svn path=/main/trunk/; revision=14974
* Fix handling for TEMP, TMP, and TMPDIR variables:Zac Medico2009-12-093-1/+12
| | | | | | | | * Add to whitelist so current values are always used. * Always filter them from the saved environment. * Always add thier values to SANDBOX_WRITE. svn path=/main/trunk/; revision=14973
* Use ImportError handling to import _TextTestResult which moved fromZac Medico2009-12-091-57/+8
| | | | | | | unittest to unittest.runner in python-2.7. Thanks to Arfrever for the suggestion. svn path=/main/trunk/; revision=14972
* When temporarily replacing the sys.std* streams, use the normal open() funcZac Medico2009-12-081-3/+13
| | | | | | | in python3 so that we get the right class (otherwise our code that expects the 'buffer' attribute will break). svn path=/main/trunk/; revision=14971
* Don't assign f to sys.stderr inside EOutput._write().Zac Medico2009-12-081-1/+0
| | | | svn path=/main/trunk/; revision=14970
* When reading the remote Packages file for --getbinpkg, use codecs.iterdecodeZac Medico2009-12-081-6/+6
| | | | | | | to decode the stream. Also, don't use finally to close the atomic_ofstream when writing the file since we want it to abort if an exception is raised. svn path=/main/trunk/; revision=14969
* Use OrderedDict in portdbapi.getFetchMap() so that order in $A correspondsZac Medico2009-12-081-2/+2
| | | | | | to order in SRC_URI. svn path=/main/trunk/; revision=14968
* Add OrderedDict class.Zac Medico2009-12-081-0/+26
| | | | svn path=/main/trunk/; revision=14967
* Move ebuild helpers to account for rename of EAPI 3 to 4.Zac Medico2009-12-083-0/+0
| | | | svn path=/main/trunk/; revision=14966
* Bump EAPI conditionals to account for rename of EAPI 3 to 4. Thanks toZac Medico2009-12-086-32/+32
| | | | | | Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14965
* Copy the unittest._TextTestResult class from python-2.6 since it's beenZac Medico2009-12-071-6/+60
| | | | | | removed in python-2.7. svn path=/main/trunk/; revision=14963
* Remove unused filter_phases, filter_mergephases, and filter_unmergephasesZac Medico2009-12-071-20/+0
| | | | | | functions. svn path=/main/trunk/; revision=14958
* Remove unnecessary elog_process() phasefilter arguements.Zac Medico2009-12-071-6/+3
| | | | svn path=/main/trunk/; revision=14957
* Make more code conditional on existence of PORTAGE_BUILDDIR insideZac Medico2009-12-071-15/+16
| | | | | | dblink._merge(). svn path=/main/trunk/; revision=14955
* Inside dblink._merge(), make sure PORTAGE_BUILDDIR still exists before tryingZac Medico2009-12-071-10/+16
| | | | | | | to call ebuild success/die hooks, since it might have already been removed by fail-clean (and the hooks would have already been called). svn path=/main/trunk/; revision=14953
* Fix possibly unsafe modification of list during iteration insideZac Medico2009-12-071-1/+1
| | | | | | update_config_files(). svn path=/main/trunk/; revision=14951
* Bug #295715 - Implement a register_success_hook function to complementZac Medico2009-12-069-23/+108
| | | | | | | register_die_hook, and also add code to ensure the die hooks are called even when the failure is on the python side (like for file collisions). svn path=/main/trunk/; revision=14936
* Add 'tla' to the lists of live eclasses.Zac Medico2009-12-063-3/+5
| | | | svn path=/main/trunk/; revision=14935
* Fix _spawn_misc_sh() to properly unset EBUILD_PHASE, and add a 'phase'Zac Medico2009-12-061-4/+5
| | | | | | description parameter for use in messages. svn path=/main/trunk/; revision=14934
* Add a AbstractEbuildProcess class for MiscFunctionsProcess to inherit theZac Medico2009-12-063-23/+34
| | | | | | _pipe and _can_log methods that used to be in the EbuildProcess class. svn path=/main/trunk/; revision=14933
* Make register_die_hook() ensure that each hook is registered only once.Zac Medico2009-12-061-1/+5
| | | | svn path=/main/trunk/; revision=14932
* Use portage.StringIO to avoid duplicate import fallback code.Zac Medico2009-12-063-22/+3
| | | | svn path=/main/trunk/; revision=14931
* Move code for handling missing sandbox binary out of the config constructor.Zac Medico2009-12-061-15/+18
| | | | svn path=/main/trunk/; revision=14930
* Bug #295805 - Fix ValueError with python3 inside update_config_files().Zac Medico2009-12-051-4/+9
| | | | svn path=/main/trunk/; revision=14929
* Bug #162404 - Automatically disable logging if sesandbox is enabled and aZac Medico2009-12-053-4/+30
| | | | | | | pty is not available for some reason (currently they are never available with python3). svn path=/main/trunk/; revision=14928
* Always append QA Notices resulting from the build log search to the end ofZac Medico2009-12-052-5/+37
| | | | | | the log. Thanks to Diego E. Pettenò for reporting. svn path=/main/trunk/; revision=14927
* Bug #280336, comment #2 - Clear the package selection cache when packagesZac Medico2009-12-031-0/+1
| | | | | | | are added to the graph. This fixes incorrect choices that happen in some cases. svn path=/main/trunk/; revision=14922