Package _emerge :: Module EbuildFetcher :: Class EbuildFetcher
[hide private]

Class EbuildFetcher

source code

                        object --+                        
                                 |                        
portage.util.SlotObject.SlotObject --+                    
                                     |                    
     AsynchronousTask.AsynchronousTask --+                
                                         |                
         AbstractPollTask.AbstractPollTask --+            
                                             |            
                         SubProcess.SubProcess --+        
                                                 |        
                         SpawnProcess.SpawnProcess --+    
                                                     |    
           portage.util._async.ForkProcess.ForkProcess --+
                                                         |
                                                        EbuildFetcher

Instance Methods [hide private]
 
already_fetched(self, settings)
Returns True if all files already exist locally and have correct digests, otherwise return False.
source code
 
_start(self) source code
 
_run(self) source code
 
_get_ebuild_path(self) source code
 
_get_manifest(self) source code
 
_get_digests(self) source code
 
_get_uri_map(self)
This can raise InvalidDependString from portdbapi.getFetchMap().
source code
 
_prefetch_size_ok(self, uri_map, settings, ebuild_path) source code
 
_pipe(self, fd_pipes)
When appropriate, use a pty so that fetcher progress bars, like wget has, will work properly.
source code
 
_eerror(self, lines) source code
 
_set_returncode(self, wait_retval)
Set the returncode in a manner compatible with subprocess.Popen.returncode: A negative value -N indicates that the child was terminated by signal N (Unix only).
source code

Inherited from SubProcess.SubProcess: isAlive

Inherited from AsynchronousTask.AsynchronousTask: addExitListener, addStartListener, cancel, poll, removeExitListener, removeStartListener, start, wait

Inherited from portage.util.SlotObject.SlotObject: __init__, copy

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from SpawnProcess.SpawnProcess (private): _spawn_kwarg_names

Inherited from SubProcess.SubProcess (private): _cancel_timeout

Inherited from AbstractPollTask.AbstractPollTask (private): _bufsize

Properties [hide private]
  _digests
  _manifest
  _settings
  _uri_map
  config_pool
  ebuild_path
  fetchall
  fetchonly
  pkg
  prefetch

Inherited from SpawnProcess.SpawnProcess: args, cgroup, close_fds, env, fd_pipes, gid, groups, logfile, opt_name, path_lookup, pre_exec, uid, umask, unshare_ipc, unshare_net

Inherited from SubProcess.SubProcess: pid

Inherited from SubProcess.SubProcess (private): _dummy_pipe_fd, _files, _reg_id

Inherited from AbstractPollTask.AbstractPollTask: scheduler

Inherited from AsynchronousTask.AsynchronousTask: background, cancelled, returncode

Inherited from object: __class__

Method Details [hide private]

already_fetched(self, settings)

source code 

Returns True if all files already exist locally and have correct digests, otherwise return False. When returning True, appropriate digest checking messages are produced for display and/or logging. When returning False, no messages are produced, since we assume that a fetcher process will later be executed in order to produce such messages. This will raise InvalidDependString if SRC_URI is invalid.

_start(self)

source code 
Overrides: AsynchronousTask.AsynchronousTask._start

_run(self)

source code 
Overrides: portage.util._async.ForkProcess.ForkProcess._run

_pipe(self, fd_pipes)

source code 

When appropriate, use a pty so that fetcher progress bars, like wget has, will work properly.

Parameters:
  • fd_pipes - pipes from which to copy terminal size if desired.
Overrides: SpawnProcess.SpawnProcess._pipe

_set_returncode(self, wait_retval)

source code 

Set the returncode in a manner compatible with subprocess.Popen.returncode: A negative value -N indicates that the child was terminated by signal N (Unix only).

Overrides: SubProcess.SubProcess._set_returncode
(inherited documentation)