summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* Filter prefix variables ED, EPREFIX, and EROOT insideZac Medico2009-12-131-1/+1
| | | | | | | | | | | | | | | | 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
* Implement forward compatible Prefix support. This makes EPREFIX, ED andZac Medico2009-12-131-2/+20
| | | | | | | | | | 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
* Add localization variables (LANG and LC_*) to the environment whitelist andZac Medico2009-12-101-0/+7
| | | | | | | | 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-101-0/+5
| | | | | | | | * 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
* Bump EAPI conditionals to account for rename of EAPI 3 to 4. Thanks toZac Medico2009-12-102-12/+12
| | | | | | Jonathan Callen <abcd@g.o> for this patch. (trunk r14965) svn path=/main/branches/2.1.7/; revision=14999
* Copy the unittest._TextTestResult class from python-2.6 since it's beenZac Medico2009-12-101-6/+60
| | | | | | removed in python-2.7. (trunk r14963) svn path=/main/branches/2.1.7/; revision=14998
* Remove unused filter_phases, filter_mergephases, and filter_unmergephasesv2.1.7.11Zac Medico2009-12-071-20/+0
| | | | | | functions. (trunk r14958) svn path=/main/branches/2.1.7/; revision=14960
* Remove unnecessary elog_process() phasefilter arguements. (trunk r14957)Zac Medico2009-12-071-6/+3
| | | | svn path=/main/branches/2.1.7/; revision=14959
* Make more code conditional on existence of PORTAGE_BUILDDIR insideZac Medico2009-12-071-15/+16
| | | | | | dblink._merge(). (trunk r14955) svn path=/main/branches/2.1.7/; revision=14956
* 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). (trunk r14953) svn path=/main/branches/2.1.7/; revision=14954
* Fix possibly unsafe modification of list during iteration insideZac Medico2009-12-071-1/+1
| | | | | | update_config_files(). (trunk r14951) svn path=/main/branches/2.1.7/; revision=14952
* Bug #295715 - Implement a register_success_hook function to complementZac Medico2009-12-065-22/+70
| | | | | | | | 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). (trunk r14936) svn path=/main/branches/2.1.7/; revision=14950
* Add 'tla' to the lists of live eclasses. (trunk r14935)Zac Medico2009-12-061-1/+2
| | | | svn path=/main/branches/2.1.7/; revision=14949
* 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. (trunk r14934) svn path=/main/branches/2.1.7/; revision=14948
* 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. (trunk r14933) svn path=/main/branches/2.1.7/; revision=14947
* Use portage.StringIO to avoid duplicate import fallback code. (trunk r14931)Zac Medico2009-12-063-22/+3
| | | | svn path=/main/branches/2.1.7/; revision=14945
* Move code for handling missing sandbox binary out of the config constructor.Zac Medico2009-12-061-15/+18
| | | | | | (trunk r14930) svn path=/main/branches/2.1.7/; revision=14944
* Bug #295805 - Fix ValueError with python3 inside update_config_files().Zac Medico2009-12-061-4/+9
| | | | | | (trunk r14929) svn path=/main/branches/2.1.7/; revision=14943
* Bug #162404 - Automatically disable logging if sesandbox is enabled and aZac Medico2009-12-063-4/+30
| | | | | | | pty is not available for some reason (currently they are never available with python3). (trunk r14928) svn path=/main/branches/2.1.7/; revision=14942
* Always append QA Notices resulting from the build log search to the end ofZac Medico2009-12-062-5/+37
| | | | | | the log. Thanks to Diego E. Pettenò for reporting. (trunk r14927) svn path=/main/branches/2.1.7/; revision=14941
* Bug #280336, comment #2 - Clear the package selection cache when packagesv2.1.7.10Zac Medico2009-12-031-0/+1
| | | | | | | are added to the graph. This fixes incorrect choices that happen in some cases. (trunk r14922) svn path=/main/branches/2.1.7/; revision=14924
* Bug #295351 - Make update_dbentries() return unicode if it's given unicode,Zac Medico2009-12-031-3/+7
| | | | | | and bytes if it's given bytes. (trunk r14921) svn path=/main/branches/2.1.7/; revision=14923
* Fix deprecated usage of dep_getkey(). Thanks to Sebastian Mingramm (few)v2.1.7.9Zac Medico2009-11-281-2/+2
| | | | | | for reporting. (trunk r14915) svn path=/main/branches/2.1.7/; revision=14918
* Bug #294945 - Fix blocker satistfied state handling inside depgraph, toZac Medico2009-11-281-4/+10
| | | | | | avoid a KeyError when displaying blockers. (trunk r14914) svn path=/main/branches/2.1.7/; revision=14917
* Revert r14901 since it doesn't solve the problem (bug #294945). (trunk r14913)Zac Medico2009-11-281-5/+1
| | | | svn path=/main/branches/2.1.7/; revision=14916
* In FakeVartree.sync(), skip the aux_get wrapper when populating old-stylev2.1.7.8Zac Medico2009-11-271-1/+7
| | | | | | | virtuals, in order to avoid unwanted cache generation with --nodeps (reported by Arfrever). (trunk r14909) svn path=/main/branches/2.1.7/; revision=14910
* Handle a KeyError in depgraph._ordered_tree_display(), reported on irc byZac Medico2009-11-271-1/+5
| | | | | | romildo. (trunk r14901) svn path=/main/branches/2.1.7/; revision=14906
* Add a note about lack of nanosecond precision in movefile(). (trunk r14900)Zac Medico2009-11-271-0/+3
| | | | svn path=/main/branches/2.1.7/; revision=14905
* In calc_depclean(), load the FakeVartree before using it. This fixesZac Medico2009-11-271-1/+1
| | | | | | | a regression which causes incomplete graph creation (since r14773). Thanks to Vlastimil Babka <caster@g.o> for reporting. (trunk r14899) svn path=/main/branches/2.1.7/; revision=14904
* Fix logic from previous commit so it only applies when a 'newmtime' parameterZac Medico2009-11-271-3/+5
| | | | | | | has not been specified (this is always the case when called by portage). (trunk r14898) svn path=/main/branches/2.1.7/; revision=14903
* In movefile(), skip os.utime() when os.rename() succeeds, in order toZac Medico2009-11-271-0/+2
| | | | | | completely preserve mtime resolution. (trunk r14897) svn path=/main/branches/2.1.7/; revision=14902
* Set built=True when creating Package instances. This fixes a problem withv2.1.7.7Zac Medico2009-11-251-1/+1
| | | | | | --resume, reported by Sebastian Mingramm (few). (trunk r14886) svn path=/main/branches/2.1.7/; revision=14891
* Add a test case which simply compiles all modules, useful for testing syntaxZac Medico2009-11-253-0/+23
| | | | | | compatibility with the current version of python. (trunk r14876) svn path=/main/branches/2.1.7/; revision=14889
* Bug #293614 - When the backtracking limit is reached and there is a SLOTZac Medico2009-11-251-0/+8
| | | | | | | conflict to display, hint that a larger --backtrack value might solve the conflict automatically. (trunk r14875) svn path=/main/branches/2.1.7/; revision=14888
* Bug #293998 - Use OSError.errno instead of trying to subscript the exceptionZac Medico2009-11-251-4/+2
| | | | | | | when handling errno.EXDEV in movefile(), since exceptions do not support subscripting in python3. (trunk r14873) svn path=/main/branches/2.1.7/; revision=14887
* Optimized the code for bug #288083 and make it handle more cases. Now Packagev2.1.7.6Zac Medico2009-11-214-97/+116
| | | | | | | instances have 'visible' and 'masks' attributes, since this information needs to be accessed in more places now. (trunk r14859) svn path=/main/branches/2.1.7/; revision=14870