Show status when listing pkgs for emerge --regen.
authorZac Medico <zmedico@gentoo.org>
Tue, 5 Oct 2010 15:37:22 +0000 (08:37 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 5 Oct 2010 15:37:22 +0000 (08:37 -0700)
pym/_emerge/MetadataRegen.py
pym/_emerge/actions.py

index f90e5dd6c43f9180276309ff9b9874a53bae8a66..bb7bb149c7ddc6a728c2e05a2217e39757531be9 100644 (file)
@@ -34,7 +34,9 @@ class MetadataRegen(PollScheduler):
                self._error_count = 0
 
        def _iter_every_cp(self):
+               portage.writemsg_stdout("Listing available packages...\n")
                every_cp = self._portdb.cp_all()
+               portage.writemsg_stdout("Regenerating cache entries...\n")
                every_cp.sort(reverse=True)
                try:
                        while True:
index 3f5668f969efe1c66d692c3d9a007ecb1859e0cf..a8fd39b150441118d15f6f2c0b9ad01e1c5f2c2a 100644 (file)
@@ -1833,7 +1833,6 @@ def action_regen(settings, portdb, max_jobs, max_load):
        xterm_titles = "notitles" not in settings.features
        emergelog(xterm_titles, " === regen")
        #regenerate cache entries
-       portage.writemsg_stdout("Regenerating cache entries...\n")
        try:
                os.close(sys.stdin.fileno())
        except SystemExit as e: