aboutsummaryrefslogtreecommitdiff
path: root/elogv
diff options
context:
space:
mode:
Diffstat (limited to 'elogv')
-rwxr-xr-xelogv6
1 files changed, 4 insertions, 2 deletions
diff --git a/elogv b/elogv
index d28e4bc..e927da2 100755
--- a/elogv
+++ b/elogv
@@ -714,8 +714,10 @@ if __name__ == "__main__":
sys.exit()
# Get the path of the elogdir
- if port_settings["PORT_LOGDIR"]:
- elogdir = os.path.join(port_settings["PORT_LOGDIR"], "elog")
+ for logdir_var in ["PORTAGE_LOGDIR", "PORT_LOGDIR"]:
+ if logdir_var in port_settings:
+ elogdir = os.path.join(port_settings[logdir_var], "elog")
+ break
else:
elogdir = os.path.join(
os.sep, port_settings["EPREFIX"], "var", "log", "portage", "elog"