Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert back to using portdbapi.getFetchMap() since the Package class | Zac Medico | 2010-08-16 | 1 | -5/+6 |
| | | | | doesn't cache SRC_URI. | ||||
* | Pass is_valid_flag to use_reduce if possible | Sebastian Luther | 2010-08-16 | 2 | -4/+5 |
| | |||||
* | portage.dep.use_reduce: Better validation of use flags in use conditionals | Sebastian Luther | 2010-08-16 | 1 | -1/+1 |
| | | | | | use_reduce now uses either a regex or, if provided, a is_valid_flag function to validate use flags | ||||
* | Convert EbuildBinpkg to inherit from MiscFunctionsProcess instead | Zac Medico | 2010-08-16 | 2 | -29/+33 |
| | | | | | of EbuildProcess. This bypasses the complex doebuild() function, and uses the _spawn_actionmap() function that's been split out. | ||||
* | Use _parse_uri_map() so that we can use cached metadata instead of | Zac Medico | 2010-08-16 | 1 | -6/+5 |
| | | | | invoking portdbapi.getFetchMap(). | ||||
* | Enable EbuildIpcDaemon support by default. | Zac Medico | 2010-08-15 | 1 | -4/+5 |
| | |||||
* | Remove PollScheduler._schedule_waitpid() since this case isn't triggered | Zac Medico | 2010-08-15 | 4 | -33/+3 |
| | | | | | | anymore, now that PollScheduler._unregister() has be fixed to discard unhandled events (so that reallocation of file descriptors no longer triggers erroneous delivery of stale events). | ||||
* | Don't handle KeyError when looking up event handlers, since | Zac Medico | 2010-08-15 | 1 | -31/+12 |
| | | | | _unregister() automatically discards stale events now. | ||||
* | Fix PollScheduler._unregister() to discard any unhandled events | Zac Medico | 2010-08-15 | 1 | -0/+13 |
| | | | | | | | | | that belong to the unregistered file, in order to prevent these events from being erroneously delivered to a future handler that is using a reallocated file descriptor of the same numeric value (causing extremely confusing bugs). Note that this is was the cause of the intermittent bug that forced me to disable EbuildIpcDaemon by default. | ||||
* | Fix SubProcess instances to call _set_returncode() when appropriate, | Zac Medico | 2010-08-15 | 4 | -8/+8 |
| | | | | instead of setting self.returncode directly. | ||||
* | Evaluate SRC_URI and return early if there's nothing to fetch. | Zac Medico | 2010-08-15 | 1 | -26/+52 |
| | |||||
* | Make DoebuildSpawnTestCase instantiate a minimal Package instance, and | Zac Medico | 2010-08-15 | 1 | -1/+1 |
| | | | | fix code to tolerate missing metadata values in various places. | ||||
* | Remove unuser return values from PollScheduler event handlers. | Zac Medico | 2010-08-15 | 4 | -6/+0 |
| | |||||
* | Remove redundant os.path.join() call in _init_ipc_fifos(). | Zac Medico | 2010-08-15 | 1 | -3/+1 |
| | |||||
* | Add the "unexpected bash exit" case to the docstring. | Zac Medico | 2010-08-15 | 1 | -1/+3 |
| | |||||
* | Disable EbuildIpcDaemon for now, since it seems to be triggering | Zac Medico | 2010-08-14 | 1 | -20/+81 |
| | | | | | 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_reduce | Sebastian Luther | 2010-08-14 | 1 | -2/+2 |
| | |||||
* | When in background mode, set NOCOLOR=true in order to prevent color | Zac Medico | 2010-08-14 | 1 | -0/+5 |
| | | | | | codes from showing up in logs, since we're not displaying to a terminal anyway. Thanks to Brian Harring for the suggestion. | ||||
* | Move 'phase' attribute to AbstractEbuildProcess from subclasses, so | Zac Medico | 2010-08-14 | 3 | -11/+11 |
| | | | | the _get_phase() method isn't needed. | ||||
* | Add a QueryCommand.settings attribute and use it so that $USE | Zac Medico | 2010-08-14 | 1 | -1/+1 |
| | | | | | 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 spawn | Zac Medico | 2010-08-14 | 2 | -8/+3 |
| | | | | | environment, so all AbstractEbuildProcess subclasses are consistent in this way. | ||||
* | Make sure PORTAGE_IPC_DAEMON is only in the environment for | Zac Medico | 2010-08-14 | 1 | -3/+6 |
| | | | | | appropriate phases (it was leaking into clean/cleanrm from previous phases. | ||||
* | Fix _schedule spelling in _schedule_waitpid(). | Zac Medico | 2010-08-14 | 1 | -1/+1 |
| | |||||
* | Add a PollScheduler._schedule_waitpid() method for SubProcess._wait() | Zac Medico | 2010-08-14 | 4 | -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.all | Sebastian Luther | 2010-08-13 | 2 | -6/+8 |
| | |||||
* | Add back the POLLHUP handling for now since PipeReaderTestCase breaks | Zac Medico | 2010-08-13 | 1 | -1/+5 |
| | | | | without it. | ||||
* | Stop handling POLLHUP events, since we're only polling for input and | Zac Medico | 2010-08-13 | 1 | -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). | ||||
* | Implement use dependency defaults | Sebastian Luther | 2010-08-13 | 3 | -13/+31 |
| | |||||
* | Handle KeyError due to stale events. | Zac Medico | 2010-08-13 | 1 | -6/+14 |
| | |||||
* | Bug #315615 - Use EbuildIpcDaemon to implement has_version and best_version. | Zac Medico | 2010-08-13 | 3 | -2/+9 |
| | | | | | This provides performance benefits and also avoids permissions issues with FEATURES=userpriv. | ||||
* | Rename SubProcess._zombie() to _orphan_process_warn() and clarify | Zac Medico | 2010-08-13 | 2 | -6/+6 |
| | | | | the eerror message. | ||||
* | Write eerror messages to the log file, and only to stdout when | Zac Medico | 2010-08-13 | 1 | -5/+30 |
| | | | | appropriate. | ||||
* | Bug #278895 - After EbuildIpcDaemon identifies an ebuild process that | Zac Medico | 2010-08-13 | 2 | -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 of | Zac Medico | 2010-08-13 | 1 | -11/+86 |
| | | | | EBUILD_EXIT_STATUS_FILE. | ||||
* | * Fix IndexError in PollScheduler._next_poll_event() by raising | Zac Medico | 2010-08-13 | 1 | -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 Medico | 2010-08-12 | 1 | -7/+4 |
| | |||||
* | Refactor interaction between EbuildIpcDaemon and ExitCommand. | Zac Medico | 2010-08-12 | 1 | -1/+21 |
| | |||||
* | Make IpcDaemonTestCase demonstrate an EbuildIpcDaemon based | Zac Medico | 2010-08-12 | 1 | -10/+10 |
| | | | | replacement for EBUILD_EXIT_STATUS_FILE. | ||||
* | Split out an EbuildIpcDaemon class from FifoIpcDaemon. | Zac Medico | 2010-08-12 | 2 | -42/+53 |
| | |||||
* | Add some pieces of an IPC framework that will eventually allow ebuild | Zac Medico | 2010-08-12 | 1 | -0/+108 |
| | | | | | | | | | | | | | | | 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). | ||||
* | Avoid unnecessary sys.hexversion conditional. | Zac Medico | 2010-08-12 | 1 | -5/+2 |
| | |||||
* | Factor EBUILD_EXIT_STATUS_FILE code out of AbstractEbuildProcess | Zac Medico | 2010-08-12 | 4 | -29/+16 |
| | | | | subclasses and into AbstractEbuildProcess itself. | ||||
* | Consolidate EBUILD_EXIT_STATUS_FILE handling in doebuild.spawn() | Zac Medico | 2010-08-12 | 2 | -4/+12 |
| | | | | and subclasses of AbstractEbuildProcess. | ||||
* | autounmask: Print use flag that trigger a given dep in comments | Sebastian Luther | 2010-08-12 | 1 | -2/+33 |
| | |||||
* | Add copyright header. | Zac Medico | 2010-08-12 | 1 | -0/+2 |
| | |||||
* | Add missing __init__.py | Zac Medico | 2010-08-12 | 1 | -0/+0 |
| | |||||
* | _emerge.depgraph: use writemsg() instead of print() (to silence tests) | Sebastian Luther | 2010-08-12 | 1 | -48/+40 |
| | |||||
* | Tests: resolver/test_slot_collisions: Check for slot_collision_solutions | Sebastian Luther | 2010-08-12 | 1 | -2/+5 |
| | |||||
* | slot_collision_handler: Add more documentation | Sebastian Luther | 2010-08-12 | 1 | -0/+59 |
| | |||||
* | slot_collision_handler: Fix function names broken by import changes | Sebastian Luther | 2010-08-12 | 1 | -3/+3 |
| |