From 84f8d38abb051a53778eaad5fde43658cbc54aca Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 Jul 2008 12:24:53 +0000 Subject: [PATCH] In dblink.unmerge(), redirect preserve-libs "!needed" messages to the log file when in background mode. svn path=/main/trunk/; revision=11167 --- pym/portage/dbapi/vartree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 208539818..837176331 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1540,6 +1540,7 @@ class dblink(object): The caller must ensure that lockdb() and unlockdb() are called before and after this method. """ + showMessage = self._display_merge if self.vartree.dbapi._categories is not None: self.vartree.dbapi._categories = None # When others_in_slot is supplied, the security check has already been @@ -1695,7 +1696,7 @@ class dblink(object): else: obj_type = "obj" os.unlink(obj) - writemsg_stdout("<<< !needed %s %s\n" % (obj_type, obj)) + showMessage("<<< !needed %s %s\n" % (obj_type, obj)) except OSError, e: if e.errno == errno.ENOENT: pass -- 2.26.2