elog/mod_save: join /var/log with EPREFIX
authorZac Medico <zmedico@gentoo.org>
Sat, 3 Sep 2011 22:59:38 +0000 (15:59 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 Sep 2011 22:59:38 +0000 (15:59 -0700)
pym/portage/elog/mod_save.py
pym/portage/elog/mod_save_summary.py

index 091bbf86d5a6d3177630313083290aa33f00052b..bfccd77399d6caf296193a281948748752416ca7 100644 (file)
@@ -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
index ab71724db230bf9899df1b2d4892a4c43141c4cb..3196d43b314c4b7094dacd567e5c0aff22a9d960 100644 (file)
@@ -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