Inside Scheduler._check_manifests(), display all broken manifests instead of
authorZac Medico <zmedico@gentoo.org>
Sat, 5 Sep 2009 22:06:46 +0000 (22:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 5 Sep 2009 22:06:46 +0000 (22:06 -0000)
returning after the first one. Thanks to Vlastimil Babka <caster@g.o> for the
suggestion.

svn path=/main/trunk/; revision=14202

pym/_emerge/Scheduler.py

index 6a44d0e2f2890c9330bf205697b3ebba8e490b53..06074c932511b226bbd3cb92fff739dcd60ef0ee 100644 (file)
@@ -607,6 +607,8 @@ class Scheduler(PollScheduler):
                        quiet_settings[myroot] = quiet_config
                        del quiet_config
 
+               failures = 0
+
                for x in self._mergelist:
                        if not isinstance(x, Package) or \
                                x.type_name != "ebuild":
@@ -624,8 +626,10 @@ class Scheduler(PollScheduler):
                        quiet_config = quiet_settings[root_config.root]
                        quiet_config["O"] = os.path.dirname(portdb.findname(x.cpv))
                        if not portage.digestcheck([], quiet_config, strict=True):
-                               return 1
+                               failures |= 1
 
+               if failures:
+                       return 1
                return os.EX_OK
 
        def _add_prefetchers(self):