Bug #217122 - When waiting for a parallel-fetch download to complete,
authorZac Medico <zmedico@gentoo.org>
Thu, 10 Apr 2008 20:37:41 +0000 (20:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 10 Apr 2008 20:37:41 +0000 (20:37 -0000)
show a more friendly and informative message.
(trunk r9815)

svn path=/main/branches/2.1.2/; revision=9816

pym/portage.py

index c9fdbe6fa1d9c863a0b154d567a764f4360028ea..cc47a3cb27cf10d00db7970e96c383506e372f97 100644 (file)
@@ -3301,8 +3301,15 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                        if use_locks and can_fetch:
                                waiting_msg = None
                                if not parallel_fetchonly and "parallel-fetch" in features:
-                                       waiting_msg = ("Downloading '%s'... " + \
-                                               "see /var/log/emerge-fetch.log for details.") % myfile
+                                       waiting_msg = ("Fetching '%s' " + \
+                                               "in the background. " + \
+                                               "To view fetch progress, run `tail -f " + \
+                                               "/var/log/emerge-fetch.log` in another " + \
+                                               "terminal.") % myfile
+                                       msg_prefix = colorize("GOOD", " * ")
+                                       from textwrap import wrap
+                                       waiting_msg = "\n".join(msg_prefix + line \
+                                               for line in wrap(waiting_msg, 65))
                                if locks_in_subdir:
                                        file_lock = portage_locks.lockfile(
                                                os.path.join(mysettings["DISTDIR"],