summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* When reloading the emerge config due to global updates in action_sync(),Zac Medico2008-08-271-0/+1
| | | | | | | | correctly update the local root_config reference. This should fix a KeyError: 'porttree' exception that's been reported to be triggered after --sync. svn path=/main/trunk/; revision=11475
* Prevent [None] in repo display. Thanks to grobian.Zac Medico2008-08-241-1/+1
| | | | svn path=/main/trunk/; revision=11470
* Add a new src_prepare phase function which is called in-between src_unpackZac Medico2008-08-231-3/+7
| | | | | | | and src_configure (and bump EAPI to 2_pre3). Thanks to Ciaran McCreesh for the suggestion. svn path=/main/trunk/; revision=11454
* For consistency, show [0] in the repo display instead of suppressing it. NowZac Medico2008-08-221-16/+38
| | | | | | | | the repo display and [0] will only be suppressed when [0] is all that would show for every package. Thanks to Joe Peterson <lavajoe@g.o> for the suggestion. svn path=/main/trunk/; revision=11449
* Fix spelling of overriding for bug #235250.Zac Medico2008-08-201-1/+1
| | | | svn path=/main/trunk/; revision=11443
* Make dblink call back to the scheduler for "clean" and "cleanrm" phases, toZac Medico2008-08-201-1/+1
| | | | | | handle output redirection. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=11441
* Make sure EBUILD_PHASE is properly unset when calling misc-functions.sh.Zac Medico2008-08-201-0/+1
| | | | svn path=/main/trunk/; revision=11440
* When in background mode, redirect "adjusting permissions" messages forZac Medico2008-08-191-18/+23
| | | | | | | features directories like CCACHE_DIR and DISTCC_DIR. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=11439
* The following error is known to occur with Linux kernel versionsZac Medico2008-08-181-1/+19
| | | | | | | | | | | | | | | less than 2.6.24: select.error: (4, 'Interrupted system call') This error has been observed after a SIGSTOP, followed by SIGCONT. Treat it similar to EAGAIN if timeout is None, otherwise just return without any events. Thanks to Jeremy Olexa <darkside@g.o> for reporting and testing this patch. svn path=/main/trunk/; revision=11436
* * Truncate status display output when necessary to avoid line overflow andZac Medico2008-08-181-3/+24
| | | | | | | | unwanted terminal scroll. * When the load average goes above 10, save space by showing fewer decimal places in the output. svn path=/main/trunk/; revision=11434
* Don't assume that the "world" set is an instance of WorldSet, allowing theZac Medico2008-08-181-13/+33
| | | | | | user to substitute some other set type if desired. svn path=/main/trunk/; revision=11433
* Pass atom instances into action_depclean() instead of the plain strings.Zac Medico2008-08-151-2/+4
| | | | svn path=/main/trunk/; revision=11415
* Validate atoms from command line args before calling action_depclean().Zac Medico2008-08-151-0/+28
| | | | svn path=/main/trunk/; revision=11414
* In order to avoid an unhandled InvalidAtom exception, validate atoms fromZac Medico2008-08-151-0/+14
| | | | | | | command line arguments before passing them to unmerge(). Thanks to Cardoe for reporting. svn path=/main/trunk/; revision=11413
* * Replace vartree.dep_match() call with normal dbapi.match() call.Zac Medico2008-08-151-3/+1
| | | | | | | * Don't silently swallow unexpected KeyError exceptions from dbapi.match() inside unmerge(). svn path=/main/trunk/; revision=11412
* When a build fails, generate a status message showing which packageZac Medico2008-08-141-18/+46
| | | | | | | | | | | | failed and the path of the relevant log file if available. Thanks to _neuron_ for the suggestion. Here is some sample output: >>> Emerging (1 of 1) foo-bar/baz-1.0 >>> Failed to emerge foo-bar/baz-1.0, Log file: >>> '/var/log/portage/foo-bar:baz-1.0:20080814-202327.log' svn path=/main/trunk/; revision=11411
* The fpformat module is deprecated and will be removed in py3k.Zac Medico2008-08-141-2/+1
| | | | | | | The % string interpolation operator should be used instead. Thanks to Ali Polatel <hawking@g.o> for this patch. svn path=/main/trunk/; revision=11406
* Make Scheduler._choose_pkg() parallelize more aggressively in cases whenZac Medico2008-08-141-5/+19
| | | | | | | | | | | | | | | it will not result in a less optimal build order. This works by modifying the behavior of Scheduler._dependent_on_scheduled_merges() so that two cases of dependence are ignored: * A given dependency will be merged later anyway (due to dep cycles) and therefore delaying the merge of the parent package will not result in a more optimal build order. * A given dependency is an "uninstall" operation and it also is not a direct dependency, therefore it should be irrelevant to build order optimization. svn path=/main/trunk/; revision=11405
* Disable "waiting for lock" messages when in background mode. Thanks to ThargorZac Medico2008-08-121-0/+2
| | | | | | for reporting. svn path=/main/trunk/; revision=11400
* Entirely disable the src_configure phase from the python side for EAPI valuesZac Medico2008-08-111-1/+7
| | | | | | | | for which it's not supported. This avoids pointless spawning of ebuild.sh and also avoids having bashrc called during an invalid phase as reported by Arfrever. svn path=/main/trunk/; revision=11398
* Increase Scheduler._job_delay_max to 10 seconds.v2.2_rc7Zac Medico2008-08-101-1/+1
| | | | svn path=/main/trunk/; revision=11395
* Remove most references to Package.metadata_keys and replace them withZac Medico2008-08-101-20/+18
| | | | | | approriate keys for the given package type. svn path=/main/trunk/; revision=11386
* Fix typo.Zac Medico2008-08-101-1/+1
| | | | svn path=/main/trunk/; revision=11382
* Remove INHERITED from the vardbapi aux_get cache since it's not really thatZac Medico2008-08-101-6/+7
| | | | | | | | useful (@live-rebuild currently pulls INHERITED from the highest visible ebuild). Also adjust keys used to pull metadata for Package instances, so that INHERITED won't get pulled from the vardbapi anymore. svn path=/main/trunk/; revision=11381
* Make the scheduler's job delay ramp up faster by increasing the factorZac Medico2008-08-101-2/+3
| | | | | | to 1.0 and adding an exponent of 1.5. svn path=/main/trunk/; revision=11378
* Escape use flags before compiling regular expressions from them. ThanksZac Medico2008-08-091-2/+6
| | | | | | to pchrist for reporting. svn path=/main/trunk/; revision=11364
* When calling dbaip.aux_get() inside depgraph._select_package(), only pull theZac Medico2008-08-091-2/+1
| | | | | | | keys that are cached. This avoids triggering useless cache pulls for INHERITED from the bindbapi. svn path=/main/trunk/; revision=11360
* Increase Scheduler._job_delay_factor from 0.5 to 0.75 so that the delayZac Medico2008-08-091-1/+1
| | | | | | | ramps up a little quicker, since the current value appears to be too weak in some cases. svn path=/main/trunk/; revision=11359
* Handle missing ipv6 support (branches/prefix r11347).Zac Medico2008-08-081-1/+1
| | | | svn path=/main/trunk/; revision=11348
* Shorten the scheduler status display in the xterm title by removing allZac Medico2008-08-081-1/+1
| | | | | | consecutive spaces. svn path=/main/trunk/; revision=11345
* In order to properly preserve --jobs and --load-average settings for --resumeZac Medico2008-08-071-3/+8
| | | | | | | | operations, store resume options in the mtimedb as a dict instead of a list. The dict type is supported in >=portage-2.1.3_rc8 (2.1.4.4 is current stable) so people switching between stable/unstable will be fine. svn path=/main/trunk/; revision=11343
* When there is no build log to display, it means that fetch failed, soZac Medico2008-08-051-15/+51
| | | | | | display the fetch log in that case. svn path=/main/trunk/; revision=11331
* Bug #233735 - Add support for src_configure and default_* functions withZac Medico2008-08-041-1/+1
| | | | | | | new EAPI=2_pre2. Thanks to Arfrever Frehtes Taifersar Arahesis for the initial patch which I've made a few adjustments to. svn path=/main/trunk/; revision=11327
* Remove code from bug #223447 which is now obsolete due to depclean usingZac Medico2008-08-041-13/+1
| | | | | | the depgraph class. svn path=/main/trunk/; revision=11326
* Make the status display say "Emerging" and "Emerging binary" instead ofZac Medico2008-08-041-2/+2
| | | | | | | "Building" and "Extracting". Thanks to Joe Peterson <lavajoe> for the suggestion (including extra newlines from previous commit). svn path=/main/trunk/; revision=11325
* Insert extra newline before status messages, since that's how it used to be.Zac Medico2008-08-041-1/+2
| | | | svn path=/main/trunk/; revision=11324
* Handle missing sets, to avoid KeyError raised from unmerge().Zac Medico2008-08-021-0/+12
| | | | svn path=/main/trunk/; revision=11319
* Make EbuildFetcher pass a copy of os.environ to the ebuild(1) subprocess sov2.2_rc6Zac Medico2008-08-011-1/+6
| | | | | | | that any incremental variables have been overridden are correctly considered by the config instance in the subproccess. svn path=/main/trunk/; revision=11312
* Bug #233252 - Handle InvalidAtom exceptions that can be raised fromZac Medico2008-08-011-15/+20
| | | | | | depgraph._add_dep() calls inside _add_pkg_deps(). svn path=/main/trunk/; revision=11309
* Bug #233487 - Fix --fetch-all-uri breakage:Zac Medico2008-08-011-3/+10
| | | | | | | | | | | * Make --fetch-all-uri imply --fetchonly so that all the --fetchonly conditionals apply to --fetch-all-uri as well. * Add an EbuildFetcher.fetchall attribute, and also add the required support to portage.doebuild() for a "fetchall" phase that EbuildFetcher can invoke in the background via the ebuild(1) command. svn path=/main/trunk/; revision=11303
* Bug #233458 - Fix AsynchronousTask exit listener handling so that an exitZac Medico2008-07-311-5/+17
| | | | | | | | | listener will never get called after it's been passed into removeExitListener(), since the caller of removeExitListener() needs to be able to be able to trust that the given exit listener will not be called under any circumstances. svn path=/main/trunk/; revision=11297
* Bug #233421 - Fix grammar, missing "be" in --update description. Thanks toZac Medico2008-07-301-2/+2
| | | | | | Mikael Magnusson for this patch. svn path=/main/trunk/; revision=11288
* Fix typo.v2.2_rc5Zac Medico2008-07-301-1/+1
| | | | svn path=/main/trunk/; revision=11284
* * Fix Scheduler._restart_if_necessary() breakage so that the given packageZac Medico2008-07-301-14/+16
| | | | | | | | is correctly compared to the last one in the merge list. * Update code in depgraph.display() to be more consistent with the code in Scheduler._is_restart_necessary(). svn path=/main/trunk/; revision=11282
* When checking for news items in --pretend mode, pass update=False intoZac Medico2008-07-301-22/+27
| | | | | | | | | | | the NewsManager.getUnreadItems() call. Emerge shouldn't have to update anything anyway when in --pretend mode, and this helps to avoid potential permission problems. In order to pass the relevant information about options (--pretend state) to the new code, supporting function parameters have been added to display_news_notification(), post_emerge(), and checkUpdatedNewsItems(). svn path=/main/trunk/; revision=11278
* Put a 5 second cap on the delay produced by Scheduler._job_delay().Zac Medico2008-07-301-2/+5
| | | | svn path=/main/trunk/; revision=11277
* Just return a boolean "state changed" value fromZac Medico2008-07-301-7/+7
| | | | | | | Scheduler._schedule_tasks_imp(), since the other "remaining" part is now unused. svn path=/main/trunk/; revision=11276
* * Optimize SequentialTaskQueue.schedule() by using a _dirty attributeZac Medico2008-07-301-13/+18
| | | | | | | | | | to track whether anything relevant has changed since the last schedule call. Since we can always rely on exist listeners being called, set of running tasks is always pruned automatically and there is never any need to actively prune it. * Remove the unused SequentialTaskQueue.auto_schedule feature. svn path=/main/trunk/; revision=11275
* Count state changes in Scheduler._schedule_tasks() and avoid some extra callsZac Medico2008-07-291-5/+12
| | | | | | when nothing changes. svn path=/main/trunk/; revision=11273
* Fix _choose_pkg() to always return something if nothing is running or merging.Zac Medico2008-07-291-0/+3
| | | | svn path=/main/trunk/; revision=11272