summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Bug #199788 - Make repoman parse GLEP 56 USE flag descriptions fromZac Medico2008-07-181-0/+33
| | | | | | | metadata.xml (in addition to use.local.desc). Thanks to Doug Goldstein <cardoe@g.o> for this patch. svn path=/main/trunk/; revision=11126
* Fix typo.Zac Medico2008-07-181-1/+1
| | | | svn path=/main/trunk/; revision=11124
* Suppress counter initialization warning messages inZac Medico2008-07-181-4/+7
| | | | | | | | vardbapi.get_counter_tick_core() in cases when the vdb is empty. This avoids pointless error messages when merging packages into a new root, like when building stage 1. svn path=/main/trunk/; revision=11123
* Add background output redirection and async ebuild phase support forZac Medico2008-07-182-41/+70
| | | | | | PackageUninstall (automatic uninstalls that solve blockers). svn path=/main/trunk/; revision=11122
* Change package status messages to give more accurate information about whatZac Medico2008-07-181-18/+34
| | | | | | | | | | | is happening at a given time: * Change "Emerging" messages to "Building" for ebuilds and "Extracting" for binary packages. * Change "Merging" messages to "Installing" and "Uninstalling". svn path=/main/trunk/; revision=11121
* In dblink._dblink_display_merge(), when in background mode and no log isZac Medico2008-07-181-2/+3
| | | | | | | | | available, suppress output when level < logging.WARNING. This hides ">>> Regenerating /etc/ld.so.cache..." messages that appear after postrm when PORT_LOGDIR is unset (the log file if it exists is removed after postrm so there's no place to log the message). svn path=/main/trunk/; revision=11120
* Use dblink._eerror() to eliminate duplicate code.Zac Medico2008-07-181-14/+2
| | | | svn path=/main/trunk/; revision=11119
* If an problem is detected in dblink._security_check(), log it via elog soZac Medico2008-07-181-10/+21
| | | | | | that it's properly displayed in the foreground even when in background mode. svn path=/main/trunk/; revision=11118
* Redirect dblink elog messages from stdout to the log file when in backgroundZac Medico2008-07-173-13/+48
| | | | | | | | mode. This is implemented by adding a new "out" parameter to the portage.elog.e* functions, which can be used to send output to an arbitary file instead of stdout. svn path=/main/trunk/; revision=11117
* When dblink is looping over files for merge/unmerge, temporarily yield to theZac Medico2008-07-172-11/+76
| | | | | | | | | | scheduler each time a fixed number of files are processed (currently 20). This gives the scheduler an opportunity to service pending poll events. This is implemented with a new PollScheduler._schedule_yield() method which calls poll() exactly once, without blocking, and any services any resulting poll events. svn path=/main/trunk/; revision=11116
* Also, reset "merges" in JobStatusDisplay.reset().Zac Medico2008-07-171-0/+1
| | | | svn path=/main/trunk/; revision=11115
* Initialize JobStatusDisplay.merges since it's not initialized with the boundZac Medico2008-07-171-0/+1
| | | | | | properties anymore. svn path=/main/trunk/; revision=11114
* Also, don't count "merges" as changes in the status display.Zac Medico2008-07-171-1/+1
| | | | svn path=/main/trunk/; revision=11113
* Since it's not very interesting, disable the "merges" part of status display.Zac Medico2008-07-171-1/+2
| | | | svn path=/main/trunk/; revision=11112
* Fix identation (tabnanny complains about this) branches/prefix r11110Zac Medico2008-07-171-1/+1
| | | | svn path=/main/trunk/; revision=11111
* Reformat the status display. Here's an example:Zac Medico2008-07-171-27/+52
| | | | | | | | >>> Jobs: 0 of 2 complete, 2 running Load average: 2.9, 2.4, 2.0 >>> Jobs: 0 of 2 complete, 1 running, 2 merges Load average: 2.8, 2.4, 2.0 >>> Jobs: 2 of 2 complete Load average: 2.6, 2.3, 2.0 svn path=/main/trunk/; revision=11107
* Don't show "Merging" and "merged." messages when in background mode.Zac Medico2008-07-171-2/+4
| | | | svn path=/main/trunk/; revision=11105
* Make Binpkg send "Extracting" messages to the log file when in backgroundZac Medico2008-07-171-3/+16
| | | | | | mode, instead of stdout. svn path=/main/trunk/; revision=11104
* Update the status display in _build_exit(), after decrementing the job count.Zac Medico2008-07-171-0/+1
| | | | svn path=/main/trunk/; revision=11103
* Make BinpkgVerifier redirect output to the fetch log when in background mode.Zac Medico2008-07-171-20/+41
| | | | svn path=/main/trunk/; revision=11102
* Don't show a blank newline before ">>> Emerging" when in background mode.Zac Medico2008-07-171-1/+4
| | | | svn path=/main/trunk/; revision=11101
* Handle the case in dblink.unmerge() when the log file is a temp file and soZac Medico2008-07-171-1/+6
| | | | | | it doesn't exist after postrm cleaning. svn path=/main/trunk/; revision=11100
* Tweak interaction between Scheduler and status display so that it doesn'tZac Medico2008-07-171-5/+6
| | | | | | display more often than necessary and avoids showing inconsistent counts. svn path=/main/trunk/; revision=11099
* * Add a new portage.util.writemsg_level() function which uses a "level"Zac Medico2008-07-174-35/+59
| | | | | | | | | | | | | | | | parameter to control whether the message is sent to stdout or stderr. When level >= logging.WARNING then the message is sent to stderr, otherwise it is sent to stdout. The noiselevel is passed directly to writemsg(). * Use writemsg_level() for handling merge messages from dblink and add appropriate noiselevel values to each call. * Add a writemsg_level parameter to portage.env_update() so that dblink can pass in dblink._display_merge() as a means to redirect output back to the scheduler for appropriate handling when running in the background. svn path=/main/trunk/; revision=11098
* Don't increment the "complete" count for uninstall tasks.Zac Medico2008-07-171-1/+2
| | | | svn path=/main/trunk/; revision=11097
* Add a JobStatusDisplay class to encapsulate the status display. This objectZac Medico2008-07-171-45/+100
| | | | | | | | | tracks whether or not any of it's attributes have changed since the last time it was displayed, so the it's only displayed when something has changed. Unlike before, now the display should always update whenever a relevant change occurs. svn path=/main/trunk/; revision=11096
* In SequentialTaskQueue.clear(), remove the exit listener from each task beforeZac Medico2008-07-171-0/+1
| | | | | | cancelling it. svn path=/main/trunk/; revision=11095
* When SpawnProcess._start() spawns a process in the background, use /dev/nullZac Medico2008-07-171-2/+14
| | | | | | | | so that any attempts to read from stdin will immediately return EOF instead of blocking indefinitely. TODO: Use job control functions like tcsetpgrp() to control access to stdin. svn path=/main/trunk/; revision=11093
* Eliminate duplicate code by making EbuildProcess inherit from SpawnProcessZac Medico2008-07-172-134/+33
| | | | | | instead of SubProcess. svn path=/main/trunk/; revision=11092
* Avoid raising an IndexError from deprecated_profile_check() if the deprecatedZac Medico2008-07-161-1/+5
| | | | | | | file happens to be empty. Instead just refer to the "Gentoo Upgrading Guide". Thanks to armin76 for reporting. svn path=/main/trunk/; revision=11088
* Pass background=True into prefetcher constructors.Zac Medico2008-07-161-5/+6
| | | | svn path=/main/trunk/; revision=11076
* Add a progress counter showing "x of y complete" toZac Medico2008-07-161-8/+24
| | | | | | Scheduler._display_status(). svn path=/main/trunk/; revision=11075
* * Add xterm titles support to Scheduler._display_status().Zac Medico2008-07-161-9/+19
| | | | | | * Tweak emergelog() so that it won't interfere with the scheduler summary. svn path=/main/trunk/; revision=11073
* Add async support for calling functions in misc-functions.sh:Zac Medico2008-07-162-54/+121
| | | | | | | | | | | | | | * Create a new MiscFunctionsProcess class derived from SpawnProcess. * Add "background" support to the SpawnProcess class and split out a _spawn() template function so MiscFunctionsProcess can override it. * Rename the existing EbuildPhase class to EbuildProcess. * Create a new EbuildPhase class derived from CompositeTask. This class spawns the EbuildProcess and MiscFunctionsProcess classes as sub-tasks. svn path=/main/trunk/; revision=11072
* Remove the config._filter_calling_env attribute since it's not really needed.Zac Medico2008-07-161-14/+13
| | | | | | Replace it with an simple os.path.exists() call inside config.environ(). svn path=/main/trunk/; revision=11071
* Show LDFLAGS in emerge --info <pkg> output. Thanks to dirtyepic for thisZac Medico2008-07-161-1/+1
| | | | | | patch. svn path=/main/trunk/; revision=11070
* Pass the whole dblink instance into Scheduler._dblink_display_merge() in caseZac Medico2008-07-162-4/+3
| | | | | | it's ever needed. svn path=/main/trunk/; revision=11069
* Redirect dblink.merge() output to the log file when --jobs > 1.Zac Medico2008-07-161-26/+38
| | | | svn path=/main/trunk/; revision=11068
* Make dblink._display_merge() detect scheduler presence internally.Zac Medico2008-07-161-6/+6
| | | | svn path=/main/trunk/; revision=11067
* Adapt the dblink merge display callback to use log levels from the loggingZac Medico2008-07-162-10/+28
| | | | | | | module so that it can be used as an interface for both writemsg() and writemsg_stdout(). svn path=/main/trunk/; revision=11066
* Redirect dblink.unmerge() output to the log file when --jobs > 1.Zac Medico2008-07-162-3/+22
| | | | svn path=/main/trunk/; revision=11065
* When --jobs > 1, display a status message each time thatZac Medico2008-07-161-3/+32
| | | | | | | | | Scheduler._schedule_tasks() is called. For example: >>> Jobs: 2 running, 0 merges, load average: 0.34, 0.46, 0.27 svn path=/main/trunk/; revision=11064
* Add some cross references between emerge's new parallel build options andZac Medico2008-07-151-1/+8
| | | | | | MAKEOPTS. svn path=/main/trunk/; revision=11063
* Make EbuildFetcher copy FETCHCOMMAND and RESUMECOMMAND to the fetchZac Medico2008-07-151-0/+6
| | | | | | environment, in case the default values have been overridden. svn path=/main/trunk/; revision=11062
* In Scheduler._restart_if_necessary(), use list.remove() instead of assumingZac Medico2008-07-151-1/+1
| | | | | | that portage is first in the resume list. svn path=/main/trunk/; revision=11061
* When packages fail with --jobs > 1 and the "echo" elog module is not enabled,Zac Medico2008-07-152-3/+43
| | | | | | | | emulate elog's mod_echo module to show the 'error' level messages, which should include the important die message. This is implemented by adding a private hook inside elog_process() which the scheduler uses to collect error messages. svn path=/main/trunk/; revision=11056
* When there is more than one failure, show a summary packages that failed toZac Medico2008-07-151-8/+31
| | | | | | | build or install. This is especially useful when using --jobs or --keep-going since there can be multiple failures. svn path=/main/trunk/; revision=11055
* * Fix --keep-going breakage that occured when Scheduler._choose_pkg() wasZac Medico2008-07-151-17/+11
| | | | | | | | | | | | | introduced. * Handle multiple failed builds when buildinding in parallel. * Fix Scheduler._do_merge_exit() to remove the correct package since it's not always at position 0 when using --jobs. in parallel, so svn path=/main/trunk/; revision=11054
* Make AsynchronousTask "registered" attributes private since poll() and wait()Zac Medico2008-07-151-32/+32
| | | | | | | do the job now. Also, hide SubProcess.files since there's no reason to expose it. svn path=/main/trunk/; revision=11053
* Use self.registered to return early from SubProcess.poll() when possible,Zac Medico2008-07-151-2/+2
| | | | | | | and remove the related code from SequentialTaskQueue.schedule() since this makes it obsolete. svn path=/main/trunk/; revision=11052