Пример #1
0
    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")
Пример #2
0
	def __init__(self, **kwargs):
		CompositeTask.__init__(self, **kwargs)
		self._fetcher_proc = _EbuildFetcherProcess(**kwargs)
Пример #3
0
 def __init__(self, **kwargs):
     CompositeTask.__init__(self, **kwargs)
     pkg = self.pkg
     self.pkg_path = pkg.root_config.trees["bintree"].getname(
         pkg.cpv) + ".partial"
Пример #4
0
 def _current_task_start_cb(self, future):
     CompositeTask._current_task_start_cb(self, future)
     if self.cancelled:
         self._task_queue.clear()
Пример #5
0
 def cancel(self):
     self._task_queue.clear()
     CompositeTask.cancel(self)
Пример #6
0
	def __init__(self, config):
		CompositeTask.__init__(self, scheduler=config.event_loop)
		self._config = config
		self._terminated = threading.Event()
Пример #7
0
 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
Пример #8
0
 def __init__(self, config):
     CompositeTask.__init__(self, scheduler=config.event_loop)
     self._config = config
     self._terminated = threading.Event()
Пример #9
0
	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
Пример #10
0
	def cancel(self):
		self._task_queue.clear()
		CompositeTask.cancel(self)
Пример #11
0
 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
Пример #12
0
	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
Пример #13
0
	def __init__(self, **kwargs):
		CompositeTask.__init__(self, **kwargs)
		pkg = self.pkg
		self.pkg_path = pkg.root_config.trees["bintree"].getname(
			pkg.cpv) + ".partial"
Пример #14
0
	def _wait(self):
		CompositeTask._wait(self)
		self._cleanup()
Пример #15
0
 def _wait(self):
     CompositeTask._wait(self)
     self._cleanup()
Пример #16
0
	def __init__(self, **kwargs):
		CompositeTask.__init__(self, **kwargs)
		self._fetcher_proc = _EbuildFetcherProcess(**kwargs)