aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2019-05-18 14:53:31 -0700
committerZac Medico <zmedico@gentoo.org>2019-05-18 14:56:37 -0700
commit8084f01891f4110894054f999acc21b7a3899833 (patch)
treebe6b11c7ae7c3fd06b928672ac33d0368a100af2 /lib/_emerge/depgraph.py
parentRecognize riscv ABIs (bug 686194) (diff)
downloadportage-8084f01891f4110894054f999acc21b7a3899833.tar.gz
portage-8084f01891f4110894054f999acc21b7a3899833.tar.bz2
portage-8084f01891f4110894054f999acc21b7a3899833.zip
Use _safe_loop where applicable
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge/depgraph.py')
-rw-r--r--lib/_emerge/depgraph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index 32b2d7da3..3e99ac077 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -47,6 +47,7 @@ from portage.util import cmp_sort_key, writemsg, writemsg_stdout
from portage.util import ensure_dirs
from portage.util import writemsg_level, write_atomic
from portage.util.digraph import digraph
+from portage.util.futures import asyncio
from portage.util._async.TaskScheduler import TaskScheduler
from portage.util._eventloop.EventLoop import EventLoop
from portage.util._eventloop.global_event_loop import global_event_loop
@@ -605,8 +606,7 @@ class depgraph(object):
self._select_atoms = self._select_atoms_highest_available
self._select_package = self._select_pkg_highest_available
- self._event_loop = (portage._internal_caller and
- global_event_loop() or EventLoop(main=False))
+ self._event_loop = asyncio._safe_loop()
self._select_atoms_parent = None