summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-22 00:35:17 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-22 00:35:17 +0000
commitb1e8cc68d7f0360d24df8ca4c78d2df974f64456 (patch)
treee511f6b175b883d350b50a4a7f6aa275fec8700d
parentc4de481fffdf47e6f17668ada3548ef1189f7e7b (diff)
downloadportage-b1e8cc68d7f0360d24df8ca4c78d2df974f64456.tar.gz
portage-b1e8cc68d7f0360d24df8ca4c78d2df974f64456.tar.bz2
portage-b1e8cc68d7f0360d24df8ca4c78d2df974f64456.zip
Adjust status messages for --fetchonly mode.
svn path=/main/trunk/; revision=11160
-rw-r--r--pym/_emerge/__init__.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 04037d6b9..60d3fe2c7 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -3366,6 +3366,9 @@ class MergeListItem(CompositeTask):
if pkg.type_name == "binary":
action_desc = "Extracting"
+ if build_opts.fetchonly:
+ action_desc = "Fetching"
+
if not build_opts.pretend:
self.statusMessage("%s (%s of %s) %s %s %s" % \
@@ -3474,9 +3477,10 @@ class PackageMerge(AsynchronousTask):
action_desc = "Installing"
preposition = "to"
- self.merge.statusMessage("%s %s %s %s" % \
- (action_desc, colorize("GOOD", pkg.cpv),
- preposition, pkg.root))
+ if not self.merge.build_opts.fetchonly:
+ self.merge.statusMessage("%s %s %s %s" % \
+ (action_desc, colorize("GOOD", pkg.cpv),
+ preposition, pkg.root))
self.returncode = self.merge.merge()
self.wait()