summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/emerge/__init__.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 74d83220c..8b0f8a59e 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -4342,8 +4342,12 @@ def post_emerge(trees, mtimedb, retval):
# Dump the mod_echo output now so that our other notifications are shown
# last.
- from portage.elog import mod_echo
- mod_echo.finalize()
+ try:
+ from portage.elog import mod_echo
+ except ImportError:
+ pass # happens during downgrade to a version without the module
+ else:
+ mod_echo.finalize()
if "noinfo" not in settings.features:
chk_updated_info_files(target_root, infodirs, info_mtimes, retval)