- small UI cleanups. *should* not cause problems with lack
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Dec 2007 15:42:28 +0000 (15:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Dec 2007 15:42:28 +0000 (15:42 -0000)
of missing newlines. (trunk r9050)

svn path=/main/branches/2.1.2/; revision=9067

bin/emerge
pym/portage.py

index 5725d8152c54643fb2c92913c7cf92606f82b6d1..3febb47ff0b2bff090e5ad1087dd7a08def80145 100755 (executable)
@@ -4721,7 +4721,8 @@ def chk_updated_info_files(root, infodirs, prev_mtimes, retval):
                                print " "+yellow("*")+" Processed",icount,"info files;",badcount,"errors."
                                print errmsg
                        else:
-                               print " "+green("*")+" Processed",icount,"info files."
+                               if icount > 0:
+                                       print " "+green("*")+" Processed",icount,"info files."
 
 
 def post_emerge(settings, mtimedb, retval):
@@ -5363,7 +5364,7 @@ def action_regen(settings, portdb):
        xterm_titles = "notitles" not in settings.features
        emergelog(xterm_titles, " === regen")
        #regenerate cache entries
-       print "Regenerating cache entries... "
+       portage.writemsg_stdout("Regenerating cache entries...\n")
        try:
                os.close(sys.stdin.fileno())
        except SystemExit, e:
@@ -5378,14 +5379,14 @@ def action_regen(settings, portdb):
                try:
                        dead_nodes[mytree] = set(portdb.auxdb[mytree].iterkeys())
                except CacheError, e:
-                       print "\n  error listing cache entries for " + \
+                       print "Error listing cache entries for " + \
                                "'%s': %s, continuing..." % (mytree, e)
                        del e
                        dead_nodes = None
                        break
        for x in mynodes:
                mymatches = portdb.cp_list(x)
-               portage.writemsg_stdout("processing %s\n" % x)
+               portage.writemsg_stdout("Processing %s\n" % x)
                for y in mymatches:
                        try:
                                foo = portdb.aux_get(y,["DEPEND"])
@@ -5393,7 +5394,7 @@ def action_regen(settings, portdb):
                                # sys.exit is an exception... And consequently, we can't catch it.
                                raise
                        except Exception, e:
-                               print "\n  error processing %(cpv)s, continuing... (%(e)s)" % {"cpv":y,"e":str(e)}
+                               print "Error processing %(cpv)s, continuing... (%(e)s)" % {"cpv":y,"e":str(e)}
                        if dead_nodes:
                                for mytree in portdb.porttrees:
                                        if portdb.findname2(y, mytree=mytree)[0]:
@@ -5406,7 +5407,7 @@ def action_regen(settings, portdb):
                                        del auxdb[y]
                                except (KeyError, CacheError):
                                        pass
-       print "done!"
+       portage.writemsg_stdout("done!\n")
 
 def action_config(settings, trees, myopts, myfiles):
        if len(myfiles) != 1 or "system" in myfiles or "world" in myfiles:
index 835440c6a8c9da9f0aff1829afeea38830ea176c..ddf0bff694c65ec5bf9d6815ee725a213b1d4c9f 100644 (file)
@@ -7717,11 +7717,11 @@ class binarytree(object):
                        except (ValueError, KeyError):
                                chunk_size = 3000
 
-                       writemsg_stdout("\n\n")
-                       writemsg_stdout(green("Fetching binary packages info...\n"))
+                       writemsg_stdout("\n")
+                       writemsg_stdout(green("Fetching bininfo from ")+base_url+"\n")
                        self.remotepkgs = getbinpkg.dir_get_metadata(
                                self.settings["PORTAGE_BINHOST"], chunk_size=chunk_size)
-                       writemsg_stdout(green("  -- DONE!\n\n"))
+                       #writemsg_stdout(green("  -- DONE!\n\n"))
 
                        for mypkg in self.remotepkgs.keys():
                                if not self.remotepkgs[mypkg].has_key("CATEGORY"):