aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2023-10-06 22:55:50 +0300
committerSebastian Pipping <sping@gentoo.org>2023-10-06 22:47:06 +0200
commite2b9632bb66e64283436ae6670dcca680a0e7363 (patch)
treece6f9e7bd83bd625830ea8f512970037ea4e8212
parentMerge branch 'complete-authors' (diff)
downloadelogv-e2b9632bb66e64283436ae6670dcca680a0e7363.tar.gz
elogv-e2b9632bb66e64283436ae6670dcca680a0e7363.tar.bz2
elogv-e2b9632bb66e64283436ae6670dcca680a0e7363.zip
elogv: accept PORTAGE_LOGDIR
Bug: https://bugs.gentoo.org/668538 Closes: https://bugs.gentoo.org/901961 Co-authored-by: josef.95 <josef64@posteo.org> Thanks-To: Sam James <sam@gentoo.org> Thanks-To: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> Thanks-To: Ninpo <ninpo@gap.la> Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Sebastian Pipping <sping@gentoo.org>
-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"