Adjust status messages for --fetchonly mode.
authorZac Medico <zmedico@gentoo.org>
Tue, 22 Jul 2008 00:35:17 +0000 (00:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 Jul 2008 00:35:17 +0000 (00:35 -0000)
svn path=/main/trunk/; revision=11160

pym/_emerge/__init__.py

index 04037d6b92b91113ce1a4636a276ee04684e2d9c..60d3fe2c7d5ae49dc34518275c8cbffb42416808 100644 (file)
@@ -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()