summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Avoid "0 files checked ..." messages reported by Pesa.Zac Medico2008-07-231-1/+1
| | | | svn path=/main/trunk/; revision=11177
* Fix --depclean/--prune regressions reported by selkin:Zac Medico2008-07-231-2/+9
| | | | | | | | | * Make --with-bdeps default to "y" for removal actions. * Treat unsatisfied build time dependencies as "soft" for removal actions, even when --with-bdeps=y. svn path=/main/trunk/; revision=11176
* Add GENTOO_MIRRORS to the variables exported by EbuildFetcher.v2.2_rc2Zac Medico2008-07-231-1/+1
| | | | svn path=/main/trunk/; revision=11173
* Make --fetchonly disable background mode.Zac Medico2008-07-231-2/+6
| | | | svn path=/main/trunk/; revision=11170
* Handle UnsatisfiedResumeDep in Scheduler._calc_resume_list().Zac Medico2008-07-221-4/+44
| | | | svn path=/main/trunk/; revision=11169
* Update --depclean and --prune, removing warnings about libraries since thoseZac Medico2008-07-222-29/+39
| | | | | | are now automatically accounted for. svn path=/main/trunk/; revision=11168
* In dblink.unmerge(), redirect preserve-libs "!needed" messages to the log fileZac Medico2008-07-221-1/+2
| | | | | | when in background mode. svn path=/main/trunk/; revision=11167
* Fix resume_depgraph() so that it doesn't raise an AssertionError due toZac Medico2008-07-221-6/+4
| | | | | | unsatisfied PDEPEND. svn path=/main/trunk/; revision=11166
* Show the number of failed packages in the status display.Zac Medico2008-07-221-11/+10
| | | | svn path=/main/trunk/; revision=11165
* Redirect build log eqawarn messages to the log file when in background mode.Zac Medico2008-07-222-3/+13
| | | | svn path=/main/trunk/; revision=11164
* Disable "Installing" status messages when in --pretend or --buildpkgonlyZac Medico2008-07-221-1/+3
| | | | | | mode. svn path=/main/trunk/; revision=11163
* Make --pretend disable background mode and imply --jobs=1.Zac Medico2008-07-221-2/+4
| | | | svn path=/main/trunk/; revision=11162
* Redirect dblink._preserve_libs() messages to the log when in background mode.Zac Medico2008-07-221-2/+5
| | | | svn path=/main/trunk/; revision=11161
* Adjust status messages for --fetchonly mode.Zac Medico2008-07-221-3/+7
| | | | svn path=/main/trunk/; revision=11160
* Adjust --fetchonly failure messages to work better with background mode.Zac Medico2008-07-221-9/+22
| | | | svn path=/main/trunk/; revision=11159
* Fix --depclean/--prune to add lib providers and their dependencies to theZac Medico2008-07-211-65/+120
| | | | | | | graph and create a new clean list when necessary. This completes the fix for bug #230053. svn path=/main/trunk/; revision=11158
* Add initial lib awareness for --depclean and --prune. Currently it will simplyZac Medico2008-07-212-8/+177
| | | | | | | | bail out if the clean list contains a package that will cause link breakage if removed. TODO: Calculate a new cleanlist instead of bailing out, and implement a package set for rebuilding consumers. svn path=/main/trunk/; revision=11157
* In dblink.findProviders(), clone the "path" variable before extending itZac Medico2008-07-211-0/+1
| | | | | | since obviously it shouldn't grow each time that findProviders() is called. svn path=/main/trunk/; revision=11156
* In dblink._preserve_libs(), strip leading $ROOT from contents paths so thatZac Medico2008-07-211-2/+4
| | | | | | it works when $ROOT != /. svn path=/main/trunk/; revision=11155
* Fix breakage in the depclean/prune unsatisfied deps handling.Zac Medico2008-07-211-7/+8
| | | | svn path=/main/trunk/; revision=11154
* Fix typo.Zac Medico2008-07-211-1/+1
| | | | svn path=/main/trunk/; revision=11153
* For --depclean and --prune, eliminate duplicate graph creation code by re-usingZac Medico2008-07-213-187/+207
| | | | | | | | the depgraph class to do it. The depgraph class was used in the past for this purpose but back then it didn't handle USE flags correctly for installed packages. Now it works fine. svn path=/main/trunk/; revision=11152
* Redirect the 'Recording <pkg> in "world" favorites file...' message throughZac Medico2008-07-211-2/+2
| | | | | | _status_msg(). svn path=/main/trunk/; revision=11151
* Fix broken references to the old elog_modules namespace.Zac Medico2008-07-201-2/+2
| | | | svn path=/main/trunk/; revision=11150
* Redirect some more unmerge() output through writemsg_level() so that it canZac Medico2008-07-201-4/+6
| | | | | | filtered out when in background mode. svn path=/main/trunk/; revision=11147
* Fix Scheduler emergelog() interaction to properly disable emergelog()Zac Medico2008-07-201-6/+7
| | | | | | xterm titles whenever the status display is enabled. svn path=/main/trunk/; revision=11146
* * Clean up _schedule_tasks_imp() a bit.Zac Medico2008-07-201-9/+9
| | | | | | * Make _task() access _background directly instead of as a parameter. svn path=/main/trunk/; revision=11145
* Make PollScheduler._poll() add poll events to the stack instead of returningZac Medico2008-07-201-6/+7
| | | | | | | them. This makes it more useful as a hook, allowing Scheduler._poll() to safely call _schedule(). svn path=/main/trunk/; revision=11144
* Merge tasks currently run synchronously which makes it necessary to disableZac Medico2008-07-191-1/+8
| | | | | | | auto_schedule on the merge queue in order to avoid excess recursion which prevents tasks from being marked complete as soon as they should be. svn path=/main/trunk/; revision=11143
* Fix Scheduler._schedule_tasks_imp() so that it never indicates that thereZac Medico2008-07-191-2/+5
| | | | | | | are remaining tasks in cases when it's supposed to bail out due to a package failure. svn path=/main/trunk/; revision=11142
* Calling _schedule() from Scheduler._poll() is unsafe since the _schedule()Zac Medico2008-07-191-1/+1
| | | | | | | call itself can consume poll events. Therefore, until a safe way exists, don't do it. svn path=/main/trunk/; revision=11141
* Use the memoized _choose_pkg() result to return earlier fromZac Medico2008-07-191-1/+2
| | | | | | _schedule_tasks() when possible. svn path=/main/trunk/; revision=11140
* When Scheduler._choose_pkg() is unable to find a package, memoize the resultZac Medico2008-07-191-2/+23
| | | | | | until at least one of the existing jobs completes. svn path=/main/trunk/; revision=11139
* Bug #231464 - Replace erroneous "return" statement in elog_process() withZac Medico2008-07-191-1/+1
| | | | | | a continue statement. Thanks to TGL for this patch. svn path=/main/trunk/; revision=11138
* Instead of calling _background_mode(), use the cached result.Zac Medico2008-07-191-4/+4
| | | | svn path=/main/trunk/; revision=11137
* Fix JobStatusDisplay._init_term() to supply default codes in cases whenZac Medico2008-07-191-6/+10
| | | | | | curses.tigetstr() returns None. svn path=/main/trunk/; revision=11136
* * Call self._schedule() from inside Scheduler._poll(). This ensures thatZac Medico2008-07-191-10/+20
| | | | | | | | | | | | | | | | | new jobs can scheduled as soon a the load average is low enough, and one of the running jobs doesn't have to complete for _schedule() to get called. * Cache the result of _background_mode() so it doesn't have to be called inside _schedule(), since this method is called a lot more often now. * Move background related state adjustments into _background_mode(). * Call _status_display.display() unconditionally inside _schedule_tasks(), since we want to update the display to show current load average even if no new jobs are added. svn path=/main/trunk/; revision=11135
* Fix typos.Zac Medico2008-07-191-2/+2
| | | | svn path=/main/trunk/; revision=11134
* Add a Scheduler._background_mode() method to control background mode, andZac Medico2008-07-191-6/+9
| | | | | | trigger it if either --quiet is enabled or --jobs > 1. svn path=/main/trunk/; revision=11133
* Display "Verifying ebuild manifests" and "Starting parallel fetch" viaZac Medico2008-07-191-2/+2
| | | | | | the status display instead of directly to stdout. svn path=/main/trunk/; revision=11132
* Add a hook in Scheduler._poll() that updates the display once every 2 secondsZac Medico2008-07-191-4/+24
| | | | | | if stdout is a tty, so that the load average numbers are always current. svn path=/main/trunk/; revision=11131
* Make all poll() calls pass through PollScheduler._poll().Zac Medico2008-07-191-5/+11
| | | | svn path=/main/trunk/; revision=11130
* When JobStatusDisplay.displayMessage() is called while the status is currentlyZac Medico2008-07-191-0/+6
| | | | | | displayed, call display() after showing the given message. svn path=/main/trunk/; revision=11129
* Add support to JobStatusDisplay() to update the current line on the terminal,Zac Medico2008-07-191-5/+91
| | | | | | | | | | | which in the future can be used to erase the line and update it with new information such as the latest load average measurement. This uses curses to obtain the simple control codes that are needed, and has fallback codes in case the curses module is unavailable or raises an error. When stdout is not a tty then the line erasing behavior is automatically disabled and display updates are simply show on a new line. svn path=/main/trunk/; revision=11128
* Add a MergeListItem.statusMessage(msg) callback for displaying messages likeZac Medico2008-07-191-21/+25
| | | | | | | | | "Building this" or "Installing that". This delegates the resposibility of generating \r and \n control characters, to guarantee that lines are created or erased when necessary and appropriate. TODO: Make JobStatusDisplay display the output. svn path=/main/trunk/; revision=11127
* 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