diff options
author | 2023-10-06 22:55:50 +0300 | |
---|---|---|
committer | 2023-10-06 22:47:06 +0200 | |
commit | e2b9632bb66e64283436ae6670dcca680a0e7363 (patch) | |
tree | ce6f9e7bd83bd625830ea8f512970037ea4e8212 | |
parent | Merge branch 'complete-authors' (diff) | |
download | elogv-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-x | elogv | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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" |