self._valid_pkgs = set()
self._process_iter = self._iter_metadata_processes()
+ self.returncode = os.EX_OK
+ self._error_count = 0
def _iter_metadata_processes(self):
portdb = self._portdb
def _metadata_exit(self, metadata_process):
self._jobs -= 1
if metadata_process.returncode != os.EX_OK:
+ self.returncode = 1
+ self._error_count += 1
self._valid_pkgs.discard(metadata_process.cpv)
portage.writemsg("Error processing %s, continuing...\n" % \
(metadata_process.cpv,))
regen.run()
portage.writemsg_stdout("done!\n")
+ return regen.returncode
def action_config(settings, trees, myopts, myfiles):
if len(myfiles) != 1:
action_metadata(settings, portdb, myopts)
elif myaction=="regen":
validate_ebuild_environment(trees)
- action_regen(settings, portdb, myopts.get("--jobs"),
+ return action_regen(settings, portdb, myopts.get("--jobs"),
myopts.get("--load-average"))
# HELP action
elif "config"==myaction: