From: Zac Medico Date: Thu, 10 Apr 2008 20:37:41 +0000 (-0000) Subject: Bug #217122 - When waiting for a parallel-fetch download to complete, X-Git-Tag: v2.1.5~204 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3736fb3ea872892b02ecdaf4b6453e27d92afcf;p=portage.git Bug #217122 - When waiting for a parallel-fetch download to complete, show a more friendly and informative message. (trunk r9815) svn path=/main/branches/2.1.2/; revision=9816 --- diff --git a/pym/portage.py b/pym/portage.py index c9fdbe6fa..cc47a3cb2 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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"],