From ebb6a97eb926c030eb933e84041b7673335cab41 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 10 Jan 2013 00:41:01 -0800 Subject: FetchTask: log_failure for distfiles digester --- pym/portage/_emirrordist/FetchTask.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3-1-g7c22