summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Disable EbuildIpcDaemon for now, since it seems to be triggeringZac Medico2010-08-143-40/+82
| | | | | intermittent build failures in my stage builds. For testing purposes set PORTAGE_IPC_DAEMON_ENABLE=1 to enable EbuildIpcDaemon.
* portage.dep: Integrate the functionality of flatten into use_reduceSebastian Luther2010-08-147-44/+142
|
* Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portageZac Medico2010-08-141-2/+15
|\
| * Use more correct paths to byte-compiled Python modules with Python 3.2Arfrever Frehtes Taifersar Arahesis2010-08-141-2/+15
| | | | | | | | and remove empty __pycache__ directories.
* | Pass $USE via IPC in order to ensure that we have the correct value forZac Medico2010-08-141-2/+8
|/ | | | | | built/installed packages, since the config class doesn't currently provide a way to access built/installed $USE that would work in all possible scenarios.
* Fix the ACCEPT_LICENSE setting that's generated for eutils check_license()Zac Medico2010-08-141-15/+26
| | | | to account for package.license.
* When in background mode, set NOCOLOR=true in order to prevent colorZac Medico2010-08-141-0/+5
| | | | | codes from showing up in logs, since we're not displaying to a terminal anyway. Thanks to Brian Harring for the suggestion.
* Add PORTAGE_PYTHON to _environ_whitelist.Zac Medico2010-08-141-1/+1
|
* Move PORTAGE_PYTHON setting to doebuild_environment() so that itZac Medico2010-08-144-6/+5
| | | | doesn't pollute os.environ.
* Move 'phase' attribute to AbstractEbuildProcess from subclasses, soZac Medico2010-08-143-11/+11
| | | | the _get_phase() method isn't needed.
* Add a QueryCommand.settings attribute and use it so that $USEZac Medico2010-08-142-5/+6
| | | | | doesn't have to be passed to the daemon in has_version and best_version calls.
* Fix EbuildSpawnProcess to use self.settings.environ() for the spawnZac Medico2010-08-143-22/+12
| | | | | environment, so all AbstractEbuildProcess subclasses are consistent in this way.
* portage.dep: Integrate the functionality of dep_opconvert into use_reduceSebastian Luther2010-08-145-27/+92
|
* Make sure PORTAGE_IPC_DAEMON is only in the environment forZac Medico2010-08-141-3/+6
| | | | | appropriate phases (it was leaking into clean/cleanrm from previous phases.
* Fix _schedule spelling in _schedule_waitpid().Zac Medico2010-08-141-1/+1
|
* Add a PollScheduler._schedule_waitpid() method for SubProcess._wait()Zac Medico2010-08-144-4/+49
| | | | | to use as an alternative to hanging up the scheduler in a blocking waitpid call.
* Atom.violated_conditionals: Use iuse.is_valid_flag instead of iuse.allSebastian Luther2010-08-134-24/+37
|
* Add a SIGUSR1 handling to trigger pdb.set_trace().Zac Medico2010-08-131-0/+6
|
* Add back the POLLHUP handling for now since PipeReaderTestCase breaksZac Medico2010-08-131-1/+5
| | | | without it.
* Stop handling POLLHUP events, since we're only polling for input andZac Medico2010-08-131-5/+1
| | | | | | POLLHUP is really intendend for purposes of output polling. Hopefully this solves a problem with POLLHUP events causing premature unregistration of event handlers (and subsequent hang in waitpid).
* Define basestring for python3.Zac Medico2010-08-131-0/+4
|
* Implement use dependency defaultsSebastian Luther2010-08-1310-152/+541
|
* Set PORTAGE_PYTHON in processes executed by portage.process._exec().Arfrever Frehtes Taifersar Arahesis2010-08-141-1/+4
|
* portage.os is apparently imported, so os doesn't need to be imported.Arfrever Frehtes Taifersar Arahesis2010-08-141-1/+0
|
* Ensure that all Python processes use the same version of Python.Arfrever Frehtes Taifersar Arahesis2010-08-142-0/+4
|
* Handle KeyError due to stale events.Zac Medico2010-08-131-6/+14
|
* Set o-r on ipc fifos since the are sensitive to reading.Zac Medico2010-08-131-1/+1
|
* Bug #315615 - Use EbuildIpcDaemon to implement has_version and best_version.Zac Medico2010-08-134-2/+64
| | | | | This provides performance benefits and also avoids permissions issues with FEATURES=userpriv.
* Rename SubProcess._zombie() to _orphan_process_warn() and clarifyZac Medico2010-08-132-6/+6
| | | | the eerror message.
* Write eerror messages to the log file, and only to stdout whenZac Medico2010-08-131-5/+30
| | | | appropriate.
* Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portageZac Medico2010-08-131-0/+1
|\
| * Remove files generated by testCompileModules.Arfrever Frehtes Taifersar Arahesis2010-08-131-0/+1
| |
* | Bug #278895 - After EbuildIpcDaemon identifies an ebuild process thatZac Medico2010-08-132-1/+28
|/ | | | | has left an orphan child process running in the background, generate an eerror message about a 'zombie' process and note the pid.
* Use EbuildIpcDaemon to replace the functionality ofZac Medico2010-08-138-101/+147
| | | | EBUILD_EXIT_STATUS_FILE.
* Use SpawnProcess instead of doebuild.spawn().Zac Medico2010-08-131-17/+14
|
* * Fix IndexError in PollScheduler._next_poll_event() by raisingZac Medico2010-08-131-2/+11
| | | | | | StopIteration instead. * Add an optional timeout parameter to PollScheduler._schedule_wait() (this will be used in a later commit).
* Call pickle.load() directly on the input pipe, and handle exceptions.Zac Medico2010-08-121-7/+4
|
* Refactor interaction between EbuildIpcDaemon and ExitCommand.Zac Medico2010-08-122-9/+27
|
* Make IpcDaemonTestCase demonstrate an EbuildIpcDaemon basedZac Medico2010-08-122-21/+52
| | | | replacement for EBUILD_EXIT_STATUS_FILE.
* Split out an EbuildIpcDaemon class from FifoIpcDaemon.Zac Medico2010-08-123-44/+55
|
* Fix inverted logic in eapi_supports_prefix() call, which causes aZac Medico2010-08-121-1/+1
| | | | | regression such that ED, EPREFIX, and EROOT where not set in EAPI 3 ebuild environments (just for portage-9999 users).
* Don't use unicode wrapper for mkfifo since it only allows stringZac Medico2010-08-121-0/+1
| | | | arguments in python3.
* Add some pieces of an IPC framework that will eventually allow ebuildZac Medico2010-08-122-0/+148
| | | | | | | | | | | | | | | processes can to communicate with portage's main python process. Here are a few possible uses: 1) Robust subshell/subprocess die support. This allows the ebuild environment to reliably die without having to rely on signal IPC. 2) Delegation of portageq calls to the main python process, eliminating performance and userpriv permission issues. 3) Reliable ebuild termination in cases when the ebuild has accidentally left orphan processes running in the backgraound (as in bug 278895).
* Tests: ResolverPlayground: more debug stuffSebastian Luther2010-08-121-1/+6
|
* Avoid unnecessary sys.hexversion conditional.Zac Medico2010-08-121-5/+2
|
* Factor EBUILD_EXIT_STATUS_FILE code out of AbstractEbuildProcessZac Medico2010-08-125-30/+17
| | | | subclasses and into AbstractEbuildProcess itself.
* Tests: ResolverPlayground: add debug option to not supress depgraph outputSebastian Luther2010-08-121-2/+4
| | | | Useful for debugging test cases.
* Tests: ResolverPlayground: create world fileSebastian Luther2010-08-121-1/+14
|
* Consolidate EBUILD_EXIT_STATUS_FILE handling in doebuild.spawn()Zac Medico2010-08-123-44/+20
| | | | and subclasses of AbstractEbuildProcess.
* Fix lazyimport() to handle partially imported modules by creatingZac Medico2010-08-121-1/+5
| | | | proxies, instead of raising ImportError.