From a6eef43e39ef8f3be6f45d27253ebe130130c198 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 10 Apr 2008 20:36:13 +0000 Subject: Bug #217122 - When waiting for a parallel-fetch download to complete, show a more friendly and informative message. svn path=/main/trunk/; revision=9815 --- pym/portage/__init__.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 64414077a..a622439aa 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3298,8 +3298,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"], -- cgit v1.2.3-1-g7c22