summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Combine 2 shift calls into one. (trunk r15059)v2.1.7.14Zac Medico2009-12-131-2/+1
| | | | svn path=/main/branches/2.1.7/; revision=15092
* Bug #296554 - Add decompression support to ecompress (similar to ecompressdirZac Medico2009-12-131-0/+57
| | | | | | | behavior) since dodoc can call ecompress with stuff that's already compressed in some way. (trunk r15058) svn path=/main/branches/2.1.7/; revision=15091
* Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, andZac Medico2009-12-131-0/+7
| | | | | | 2. (trunk r15057) svn path=/main/branches/2.1.7/; revision=15090
* Inside depgraph._validate_blockers(), do not consider blockers in DEPEND ofZac Medico2009-12-132-4/+14
| | | | | | | installed packages, since DEPEND is supposed to be irrelevant for packages after they are built. (trunk r15056) svn path=/main/branches/2.1.7/; revision=15089
* Bug #296641 - Avoid UnicodeEncodeError with python2 in eapi_is_supported()Zac Medico2009-12-131-1/+5
| | | | | | triggered by corrupt EAPI. (trunk r15055) svn path=/main/branches/2.1.7/; revision=15088
* In movefile mtime preservation code, simply round down to the nearest wholeZac Medico2009-12-131-29/+9
| | | | | | | | second since python's float cannot preserve the st_mtim.tv_nsec field with complete precision. Note that we have to use stat_obj[stat.ST_MTIME] here because the float stat_obj.st_mtime rounds *up* sometimes. (trunk r15054) svn path=/main/branches/2.1.7/; revision=15087
* Remove redundant EPREFIX, EROOT, and ROOT assingments insideZac Medico2009-12-131-5/+0
| | | | | | doebuild_environment(). (trunk r15052) svn path=/main/branches/2.1.7/; revision=15086
* Remove unused STARTDIR variable. (trunk r15051)Zac Medico2009-12-132-3/+2
| | | | svn path=/main/branches/2.1.7/; revision=15085
* Unset prefix vars for depend phase (even if EAPI is known). (trunk r15050)Zac Medico2009-12-131-2/+1
| | | | svn path=/main/branches/2.1.7/; revision=15084
* Unset prefix vars for depend phase when EAPI is unknown. (trunk r15049)Zac Medico2009-12-131-1/+2
| | | | svn path=/main/branches/2.1.7/; revision=15083
* * Fix type in econf --host argument.Zac Medico2009-12-132-22/+26
| | | | | | | * Add missing econf --build and --target arguments. * Use tabs instead of spaces for indentation. (trunk r15048) svn path=/main/branches/2.1.7/; revision=15082
* Fix typo. (trunk r15047)Zac Medico2009-12-131-1/+1
| | | | svn path=/main/branches/2.1.7/; revision=15081
* In movefile mtime rounding code, generate nanosecond resolution (9 decimalZac Medico2009-12-131-21/+15
| | | | | | | places) in order to ensure that the floating point representation is the highest value possible without rounding up. (trunk r15046) svn path=/main/branches/2.1.7/; revision=15080
* Fix typo. (trunk r15045)Zac Medico2009-12-131-1/+1
| | | | svn path=/main/branches/2.1.7/; revision=15079
* Remove redundant EPREFIX setting since it's already initialized earlier in theZac Medico2009-12-131-4/+0
| | | | | | config constructor. (trunk r15044) svn path=/main/branches/2.1.7/; revision=15078
* Update for EAPI 3_pre2. (trunk r15043)Zac Medico2009-12-131-6/+93
| | | | svn path=/main/branches/2.1.7/; revision=15077
* Add more EAPI 3 conditionals for prefix variables. (trunk r15042)Zac Medico2009-12-131-2/+9
| | | | svn path=/main/branches/2.1.7/; revision=15076
* Add EAPI 3 conditionals for prefix variables. (trunk r15041)Zac Medico2009-12-131-5/+8
| | | | svn path=/main/branches/2.1.7/; revision=15075
* Just use integer mtime if no fractional seconds are found in the search.Zac Medico2009-12-131-1/+4
| | | | | | (trunk r15040) svn path=/main/branches/2.1.7/; revision=15074
* Tweak movefile() timestamp preservation code to maximize precision for oldZac Medico2009-12-131-21/+21
| | | | | | timestamps that are closer to the epoch. (trunk r15039) svn path=/main/branches/2.1.7/; revision=15073
* Add missing line from previous commit. (trunk r15038)Zac Medico2009-12-131-0/+1
| | | | svn path=/main/branches/2.1.7/; revision=15072
* In movefile() timestamp preservation code, use another loop to search forZac Medico2009-12-131-0/+9
| | | | | | another digit of precision. (trunk r15037) svn path=/main/branches/2.1.7/; revision=15071
* Add EAPI to the whitelist to ensure it's always available as early as possible.Zac Medico2009-12-131-1/+1
| | | | | | (trunk r15036) svn path=/main/branches/2.1.7/; revision=15070
* Add EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled. (trunk r15035)Zac Medico2009-12-136-18/+18
| | | | svn path=/main/branches/2.1.7/; revision=15069
* Enable xz unpack for EAPI 3_pre2. (trunk r15034)Zac Medico2009-12-131-1/+1
| | | | svn path=/main/branches/2.1.7/; revision=15068
* Add support for EAPI 3_pre2. (trunk r15033)Zac Medico2009-12-131-1/+1
| | | | svn path=/main/branches/2.1.7/; revision=15067
* In config.environ(), only export ED, EPREFIX, and EROOT to the ebuildZac Medico2009-12-131-0/+6
| | | | | | | environment starting with EAPI 3 (so people won't write ebuilds that are incompatible with older package managers). (trunk r15032) svn path=/main/branches/2.1.7/; revision=15066
* Don't filter/interfere with prefix variables unless they are supported by theZac Medico2009-12-131-1/+12
| | | | | | current EAPI. (trunk r15031) svn path=/main/branches/2.1.7/; revision=15065
* Filter prefix variables ED, EPREFIX, and EROOT insideZac Medico2009-12-132-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. (trunk r15030) svn path=/main/branches/2.1.7/; revision=15064
* Don't use lazy import for portage.cache.mappings because it's imported anyway.Zac Medico2009-12-131-8/+6
| | | | | | (trunk r15029) svn path=/main/branches/2.1.7/; revision=15063
* Use collections.OrderedDict when available (python-2.7) and fall back toZac Medico2009-12-132-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. (trunk r15028) svn path=/main/branches/2.1.7/; revision=15062
* fix definition regarding slashes for EPREFIX, D, ED and EROOT (trunk r15026)Zac Medico2009-12-131-9/+14
| | | | svn path=/main/branches/2.1.7/; revision=15061
* Implement forward compatible Prefix support. This makes EPREFIX, ED andZac Medico2009-12-133-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. (trunk r15024) svn path=/main/branches/2.1.7/; revision=15060
* Fix introspection code in fetch() so that it works correctly when myuris isv2.1.7.13Zac Medico2009-12-101-1/+2
| | | | | | | an OrderedDict instance. This fixes broken fetching for some packages. (trunk r15019) svn path=/main/branches/2.1.7/; revision=15020
* Remove extra comman in comment. (trunk r15015)v2.1.7.12Zac Medico2009-12-101-1/+1
| | | | svn path=/main/branches/2.1.7/; revision=15016
* 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. (trunk r14997) svn path=/main/branches/2.1.7/; revision=15013
* 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. (trunk r14996) svn path=/main/branches/2.1.7/; revision=15012
* In movefile(), always use stat_obj[stat.ST_MTIME] for the integral timestampZac Medico2009-12-101-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. (trunk r14995) svn path=/main/branches/2.1.7/; revision=15011
* Remove obsolete env-update.sh script. (trunk r14992)Zac Medico2009-12-101-219/+0
| | | | svn path=/main/branches/2.1.7/; revision=15010
* Add localization variables (LANG and LC_*) to the environment whitelist andZac Medico2009-12-102-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. (trunk r14975) svn path=/main/branches/2.1.7/; revision=15009
* When overridding sys.std* in python2, use binary streams. (trunk r14974)Zac Medico2009-12-101-6/+8
| | | | svn path=/main/branches/2.1.7/; revision=15008
* Fix handling for TEMP, TMP, and TMPDIR variables:Zac Medico2009-12-103-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. (trunk r14973) svn path=/main/branches/2.1.7/; revision=15007
* Use ImportError handling to import _TextTestResult which moved fromZac Medico2009-12-101-57/+8
| | | | | | | unittest to unittest.runner in python-2.7. Thanks to Arfrever for the suggestion. (trunk r14972) svn path=/main/branches/2.1.7/; revision=15006
* When temporarily replacing the sys.std* streams, use the normal open() funcZac Medico2009-12-101-3/+13
| | | | | | | in python3 so that we get the right class (otherwise our code that expects the 'buffer' attribute will break). (trunk r14971) svn path=/main/branches/2.1.7/; revision=15005
* Don't assign f to sys.stderr inside EOutput._write(). (trunk r14970)Zac Medico2009-12-101-1/+0
| | | | svn path=/main/branches/2.1.7/; revision=15004
* When reading the remote Packages file for --getbinpkg, use codecs.iterdecodeZac Medico2009-12-101-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. (trunk r14969) svn path=/main/branches/2.1.7/; revision=15003
* Use OrderedDict in portdbapi.getFetchMap() so that order in $A correspondsZac Medico2009-12-101-2/+2
| | | | | | to order in SRC_URI. (trunk r14968) svn path=/main/branches/2.1.7/; revision=15002
* Add OrderedDict class. (trunk r14967)Zac Medico2009-12-101-0/+26
| | | | svn path=/main/branches/2.1.7/; revision=15001
* Move ebuild helpers to account for rename of EAPI 3 to 4. (trunk r14966)Zac Medico2009-12-103-0/+0
| | | | svn path=/main/branches/2.1.7/; revision=15000
* Bump EAPI conditionals to account for rename of EAPI 3 to 4. Thanks toZac Medico2009-12-106-29/+29
| | | | | | Jonathan Callen <abcd@g.o> for this patch. (trunk r14965) svn path=/main/branches/2.1.7/; revision=14999