As suggested by vapier, send emerge -fp output to stdout and make it work together...
authorZac Medico <zmedico@gentoo.org>
Wed, 20 Sep 2006 03:47:18 +0000 (03:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 20 Sep 2006 03:47:18 +0000 (03:47 -0000)
svn path=/main/trunk/; revision=4485

pym/portage.py

index c7d48205de5c594447a66d15e211e01566af04a7..104f1a27917aabae18c2dfadcb7d45ba83a936bc 100644 (file)
@@ -2114,7 +2114,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                fetched=0
                file_lock = None
                if listonly:
-                       writemsg("\n")
+                       writemsg_stdout("\n", noiselevel=-1)
                else:
                        if use_locks and can_fetch:
                                if locks_in_subdir:
@@ -2185,7 +2185,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
 
                        for loc in filedict[myfile]:
                                if listonly:
-                                       writemsg(loc+" ")
+                                       writemsg_stdout(loc+" ", noiselevel=-1)
                                        continue
                                # allow different fetchcommands per protocol
                                protocol = loc[0:loc.find("://")]
@@ -2342,7 +2342,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                                portage_locks.unlockfile(file_lock)
 
                if listonly:
-                       writemsg("\n")
+                       writemsg_stdout("\n", noiselevel=-1)
                if fetched != 2:
                        if restrict_fetch:
                                print "\n!!!", mysettings["CATEGORY"] + "/" + \