From: Zac Medico Date: Mon, 6 Jun 2011 02:24:29 +0000 (-0700) Subject: Scheduler: init _fetch_log in constructor X-Git-Tag: v2.2.0_alpha38~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e717c4429dc00950a8e5840ecce8b4b6fce2d059;p=portage.git Scheduler: init _fetch_log in constructor This ensures that we account for EMERGE_LOG_DIR. --- diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index bdc13aa85..c3752c54f 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -34,6 +34,7 @@ from portage.package.ebuild.digestcheck import digestcheck from portage.package.ebuild.digestgen import digestgen from portage.package.ebuild.prepare_build_dirs import prepare_build_dirs +import _emerge from _emerge.BinpkgFetcher import BinpkgFetcher from _emerge.BinpkgPrefetcher import BinpkgPrefetcher from _emerge.BinpkgVerifier import BinpkgVerifier @@ -46,7 +47,7 @@ from _emerge.DepPriority import DepPriority from _emerge.depgraph import depgraph, resume_depgraph from _emerge.EbuildFetcher import EbuildFetcher from _emerge.EbuildPhase import EbuildPhase -from _emerge.emergelog import emergelog, _emerge_log_dir +from _emerge.emergelog import emergelog from _emerge.FakeVartree import FakeVartree from _emerge._find_deep_system_runtime_deps import _find_deep_system_runtime_deps from _emerge._flush_elog_mod_echo import _flush_elog_mod_echo @@ -83,8 +84,6 @@ class Scheduler(PollScheduler): _bad_resume_opts = set(["--ask", "--changelog", "--resume", "--skipfirst"]) - _fetch_log = os.path.join(_emerge_log_dir, 'emerge-fetch.log') - class _iface_class(SlotObject): __slots__ = ("fetch", "output", "register", "schedule", @@ -216,6 +215,8 @@ class Scheduler(PollScheduler): for root in self.trees: self._config_pool[root] = [] + self._fetch_log = os.path.join(_emerge.emergelog._emerge_log_dir, + 'emerge-fetch.log') fetch_iface = self._fetch_iface_class(log_file=self._fetch_log, schedule=self._schedule_fetch) self._sched_iface = self._iface_class(