Always exit unsuccessfully if there are any failures.
authorZac Medico <zmedico@gentoo.org>
Mon, 6 Jul 2009 02:39:56 +0000 (02:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 6 Jul 2009 02:39:56 +0000 (02:39 -0000)
svn path=/main/trunk/; revision=13793

pym/_emerge/Scheduler.py

index 1ae85728a0fb7a873b53b02d40a82c7d0df2280a..dd1c64e453aaa6bee4c9e652b8449e289e51309b 100644 (file)
@@ -924,7 +924,9 @@ class Scheduler(PollScheduler):
                                        noiselevel=-1)
                        writemsg(prefix + "\n", noiselevel=-1)
 
-               return rval
+               if self._failed_pkgs_all:
+                       return 1
+               return os.EX_OK
 
        def _elog_listener(self, mysettings, key, logentries, fulltext):
                errors = portage.elog.filter_loglevels(logentries, ["ERROR"])