diff options
author | Zac Medico <zmedico@gentoo.org> | 2013-01-10 00:41:01 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-01-10 00:41:01 -0800 |
commit | ebb6a97eb926c030eb933e84041b7673335cab41 (patch) | |
tree | 9d993f6b8df5cd19a44aa7ee423f93c1932da69b /pym | |
parent | f14f173934f11415889c114af24685bb2b19de22 (diff) | |
download | portage-ebb6a97eb926c030eb933e84041b7673335cab41.tar.gz portage-ebb6a97eb926c030eb933e84041b7673335cab41.tar.bz2 portage-ebb6a97eb926c030eb933e84041b7673335cab41.zip |
FetchTask: log_failure for distfiles digester
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/_emirrordist/FetchTask.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |