From: Zac Medico Date: Sat, 3 Sep 2011 22:59:38 +0000 (-0700) Subject: elog/mod_save: join /var/log with EPREFIX X-Git-Tag: v2.2.0_alpha53~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=48e99671013b1dec046059724b01324d8aa1086c;p=portage.git elog/mod_save: join /var/log with EPREFIX --- diff --git a/pym/portage/elog/mod_save.py b/pym/portage/elog/mod_save.py index 091bbf86d..bfccd7739 100644 --- a/pym/portage/elog/mod_save.py +++ b/pym/portage/elog/mod_save.py @@ -18,7 +18,7 @@ def process(mysettings, key, logentries, fulltext): if mysettings.get("PORT_LOGDIR"): logdir = normalize_path(mysettings["PORT_LOGDIR"]) else: - logdir = os.path.join(os.sep, "var", "log", "portage") + logdir = os.path.join(mysettings["EPREFIX"], "var", "log", "portage") if not os.path.isdir(logdir): # Only initialize group/mode if the directory doesn't diff --git a/pym/portage/elog/mod_save_summary.py b/pym/portage/elog/mod_save_summary.py index ab71724db..3196d43b3 100644 --- a/pym/portage/elog/mod_save_summary.py +++ b/pym/portage/elog/mod_save_summary.py @@ -18,7 +18,7 @@ def process(mysettings, key, logentries, fulltext): if mysettings.get("PORT_LOGDIR"): logdir = normalize_path(mysettings["PORT_LOGDIR"]) else: - logdir = os.path.join(os.sep, "var", "log", "portage") + logdir = os.path.join(mysettings["EPREFIX"], "var", "log", "portage") if not os.path.isdir(logdir): # Only initialize group/mode if the directory doesn't