From: Zac Medico Date: Tue, 22 Jul 2008 12:24:53 +0000 (-0000) Subject: In dblink.unmerge(), redirect preserve-libs "!needed" messages to the log file X-Git-Tag: v2.2_rc2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84f8d38abb051a53778eaad5fde43658cbc54aca;p=portage.git In dblink.unmerge(), redirect preserve-libs "!needed" messages to the log file when in background mode. svn path=/main/trunk/; revision=11167 --- 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