diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-04-10 20:37:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-04-10 20:37:41 +0000 |
commit | a3736fb3ea872892b02ecdaf4b6453e27d92afcf (patch) | |
tree | 18ba53e2fe873cb946ccb05b8672b6b55f38cee4 /pym | |
parent | cbf8dcd93620f323528b199ac8313fbde92d40e1 (diff) | |
download | portage-a3736fb3ea872892b02ecdaf4b6453e27d92afcf.tar.gz portage-a3736fb3ea872892b02ecdaf4b6453e27d92afcf.tar.bz2 portage-a3736fb3ea872892b02ecdaf4b6453e27d92afcf.zip |
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
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 11 |
1 files changed, 9 insertions, 2 deletions
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"], |