From e32ccbb0ad1fb01cca5c8d76a898820608daf619 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 1 Aug 2007 18:05:15 +0000 Subject: [PATCH] For bug #187375, handle an ImportError when portage is downgraded to a version without mod_echo. (trunk r7535) svn path=/main/branches/2.1.2/; revision=7536 --- bin/emerge | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/emerge b/bin/emerge index fb4fbe7e3..790cd14fd 100755 --- a/bin/emerge +++ b/bin/emerge @@ -4342,8 +4342,12 @@ def post_emerge(settings, mtimedb, retval): # Dump the mod_echo output now so that our other notifications are shown # last. - from elog_modules import mod_echo - mod_echo.finalize() + try: + from elog_modules 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) -- 2.26.2