From: Zac Medico Date: Thu, 10 Jan 2013 08:41:01 +0000 (-0800) Subject: FetchTask: log_failure for distfiles digester X-Git-Tag: v2.2.0_alpha150~8 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ebb6a97eb926c030eb933e84041b7673335cab41;p=portage.git FetchTask: log_failure for distfiles digester --- diff --git a/pym/portage/_emirrordist/FetchTask.py b/pym/portage/_emirrordist/FetchTask.py index 0853197db..61b567bf6 100644 --- a/pym/portage/_emirrordist/FetchTask.py +++ b/pym/portage/_emirrordist/FetchTask.py @@ -150,11 +150,18 @@ class FetchTask(CompositeTask): return if self._default_exit(digester) != os.EX_OK: + # IOError reading file in our main distfiles directory? This + # is a bad situation which normally does not occur, so + # skip this file and report it, in order to draw attention + # from the administrator. msg = "%s distfiles digester failed unexpectedly" % \ (self.distfile,) self.scheduler.output(msg + '\n', background=True, log_path=self._log_path) logging.error(msg) + self.config.log_failure("%s\t%s\t%s" % + (self.cpv, self.distfile, msg)) + self.config.file_failures[self.distfile] = self.cpv self.wait() return