| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
svn path=/main/trunk/; revision=11124
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
PackageUninstall (automatic uninstalls that solve blockers).
svn path=/main/trunk/; revision=11122
|
|
|
|
| |
svn path=/main/trunk/; revision=11119
|
|
|
|
|
|
| |
that it's properly displayed in the foreground even when in background mode.
svn path=/main/trunk/; revision=11118
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/main/trunk/; revision=11111
|
|
|
|
|
|
| |
it doesn't exist after postrm cleaning.
svn path=/main/trunk/; revision=11100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
instead of SubProcess.
svn path=/main/trunk/; revision=11092
|
|
|
|
|
|
|
| |
file happens to be empty. Instead just refer to the "Gentoo Upgrading Guide".
Thanks to armin76 for reporting.
svn path=/main/trunk/; revision=11088
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
Replace it with an simple os.path.exists() call inside config.environ().
svn path=/main/trunk/; revision=11071
|
|
|
|
|
|
| |
it's ever needed.
svn path=/main/trunk/; revision=11069
|
|
|
|
| |
svn path=/main/trunk/; revision=11068
|
|
|
|
| |
svn path=/main/trunk/; revision=11067
|
|
|
|
|
|
|
| |
module so that it can be used as an interface for both writemsg() and
writemsg_stdout().
svn path=/main/trunk/; revision=11066
|
|
|
|
| |
svn path=/main/trunk/; revision=11065
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
properly.
svn path=/main/trunk/; revision=11046
|
|
|
|
|
|
|
|
|
| |
* Add async support for pkg_prerm and pkg_postrm.
* Add missing "treetype" parameter to dblink constructor calls.
* Fix SubProcess._wait() to check self.returncode _after_ calling
the scheduler.
svn path=/main/trunk/; revision=11045
|
|
|
|
|
|
|
| |
scheduler's poll loop to run so that other parallel tasks aren't starved for
output handling while pkg_preinst and pkg_postinst are executing.
svn path=/main/trunk/; revision=11044
|
|
|
|
|
|
|
|
|
| |
blocking forever, replace it with a simpler test on /dev/null that's
derived from a test in a glib2 configure script.
* Remove PtyReaderTestCase since it has the same problem as can_poll_pty().
svn path=/main/trunk/; revision=11039
|
|
|
|
|
|
| |
entries are correctly from the Packages index.
svn path=/main/trunk/; revision=11034
|
|
|
|
| |
svn path=/main/trunk/; revision=11024
|
|
|
|
|
|
|
| |
fail on some operating systems such as Darwin that do not support poll() on
pty devices.
svn path=/main/trunk/; revision=11023
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pipe and assert that the data written to the pipe is identical to the data
read from the pipe. In order to implement this test, several useful classes
have been added:
* PipeReader
Reads output from one or more files and saves it in memory,
for retrieval via the getvalue() method. This is driven by
the scheduler's poll() loop, so it runs entirely within the
current process.
* QueueScheduler
Add instances of SequentialTaskQueue and then call run().
The run() method returns when no tasks remain.
* TaskScheduler
A simple way to handle scheduling of AsynchrousTask instances. Simply
add tasks and call run(). The run() method returns when no tasks remain.
svn path=/main/trunk/; revision=11022
|
|
|
|
|
|
|
|
| |
Scheduler._pkg().
* Define digraph.__contains__ for containment tests via the "in" operator.
svn path=/main/trunk/; revision=11021
|
|
|
|
|
|
|
| |
portdbapi.aux_get() since it's still needed there or else aux_get won't
properly return INHERITED.
svn path=/main/trunk/; revision=11016
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
options:
* Split out a PollLoop base class from Scheduler and derive a MetadataRegen
class to handle parallel scheduling for --regen.
* Add pordbapi._metadata_process() and _metadata_callback() methods to
implement asynchronous metadata generation. One method returns an
EbuildMetadataPhase instance to encapsulate the async task. The other
method is called to save the metadata when the process completes
successfully. These methods share code with aux_get to avoid duplicate
code.
svn path=/main/trunk/; revision=11012
|
|
|
|
|
|
|
| |
write a message to stderr showing the exact call that failed, including the
path of the file, in order to aid in debugging.
svn path=/main/trunk/; revision=11010
|
|
|
|
|
|
| |
the background.
svn path=/main/trunk/; revision=11009
|
|
|
|
|
|
| |
getmaskingstatus() that's triggered by a conditional in LICENSE.
svn path=/main/trunk/; revision=11004
|
|
|
|
|
|
|
|
|
|
|
| |
class. When in background mode, fetch output is logged to emerge-fetch.log.
This solves a problem with calling doebuild(returnpid=1) and then doebuild
calling fetch() synchronously. In that case, doebuild would return an int
if fetch() failed (including when running pkg_nofetch), which would lead
to a TypeError since doebuild(returnpid=1) is supposed to return a list
containing a spawned pid.
svn path=/main/trunk/; revision=11002
|
|
|
|
| |
svn path=/main/trunk/; revision=10938
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
digests for binary packages.
* Split out a AsynchronousTask base class from SubProcess.
* Derive a new BinpkgVerifier class from AsynchronousTask. Even though
this is not really asynchronous yet, it can fake the interface by
doing everything in the start() method.
svn path=/main/trunk/; revision=10935
|
|
|
|
| |
svn path=/main/trunk/; revision=10923
|
|
|
|
|
|
|
|
|
|
| |
a "flags" keyword parameter to the portage.locks.lock() function. Default
is flags=0. If flags contains os.O_NONBLOCK then lock() will raise
portage.exception.TryAgain instead of blocking. This new flags parameter
is used to implement non-blocking distlocks in fetch() when fetchonly
mode is enabled.
svn path=/main/trunk/; revision=10917
|
|
|
|
| |
svn path=/main/trunk/; revision=10916
|
|
|
|
|
|
| |
PreservedLibsRegistry.load().
svn path=/main/trunk/; revision=10915
|
|
|
|
|
|
|
|
|
|
| |
ObjectProxy instances that are used for lazy initialization of legacy
global variables. The purpose of deleting them is to prevent new code
from referencing these deprecated variables. This allows the removal
of the PORTAGE_LEGACY_GLOBALS variable which used to serve the same
purpose.
svn path=/main/trunk/; revision=10909
|
|
|
|
|
|
| |
can run while a package is extracting in the background.
svn path=/main/trunk/; revision=10902
|
|
|
|
| |
svn path=/main/trunk/; revision=10897
|
|
|
|
|
|
| |
an instance of EbuildBuildDir instead.
svn path=/main/trunk/; revision=10892
|
|
|
|
|
|
| |
Don't use the format raise Exception, "string"
svn path=/main/trunk/; revision=10890
|
|
|
|
|
|
| |
Replace dict.has_key() calls with "in" and "not in" operators.
svn path=/main/trunk/; revision=10875
|
|
|
|
|
|
| |
Replace dict.has_key() calls with "in" and "not in" operators.
svn path=/main/trunk/; revision=10873
|
|
|
|
|
|
| |
Replace dict.has_key() calls with "in" and "not in" operators.
svn path=/main/trunk/; revision=10872
|
|
|
|
|
|
| |
Replace dict.has_key() calls with "in" and "not in" operators.
svn path=/main/trunk/; revision=10871
|