In dblink.unmerge(), redirect preserve-libs "!needed" messages to the log file
authorZac Medico <zmedico@gentoo.org>
Tue, 22 Jul 2008 12:24:53 +0000 (12:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 Jul 2008 12:24:53 +0000 (12:24 -0000)
when in background mode.

svn path=/main/trunk/; revision=11167

pym/portage/dbapi/vartree.py

index 2085398189ec34c59fa7473104a79de56910e7a4..837176331b716fdfcc990e50f2cfec5d3cfb4215 100644 (file)
@@ -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