def __init__(self, **kwargs): CompositeTask.__init__(self, **kwargs) pkg = self.pkg bintree = pkg.root_config.trees["bintree"] binpkg_path = None if bintree._remote_has_index: instance_key = bintree.dbapi._instance_key(pkg.cpv) binpkg_path = bintree._remotepkgs[instance_key].get("PATH") if binpkg_path: self.pkg_path = binpkg_path + ".partial" else: self.pkg_path = (pkg.root_config.trees["bintree"].getname( pkg.cpv, allocate_new=True) + ".partial") else: raise FileNotFound("Binary packages index not found")
def __init__(self, **kwargs): CompositeTask.__init__(self, **kwargs) self._fetcher_proc = _EbuildFetcherProcess(**kwargs)
def __init__(self, **kwargs): CompositeTask.__init__(self, **kwargs) pkg = self.pkg self.pkg_path = pkg.root_config.trees["bintree"].getname( pkg.cpv) + ".partial"
def _current_task_start_cb(self, future): CompositeTask._current_task_start_cb(self, future) if self.cancelled: self._task_queue.clear()
def cancel(self): self._task_queue.clear() CompositeTask.cancel(self)
def __init__(self, config): CompositeTask.__init__(self, scheduler=config.event_loop) self._config = config self._terminated = threading.Event()
def __init__(self, config): CompositeTask.__init__(self, scheduler=config.event_loop) self._config = config self._term_rlock = threading.RLock() self._term_callback_handle = None self._fetch_iterator = None
def _wait(self): CompositeTask._wait(self) if self._term_check_id is not None: self.scheduler.source_remove(self._term_check_id) self._term_check_id = None
def _wait(self): CompositeTask._wait(self) self._cleanup()