1 |
commit: b449f5df29848097b12e161df5d50ceed03a0517 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 3 23:17:04 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 3 23:17:04 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b449f5df |
7 |
|
8 |
elog/mod_save: join /var/log with os.sep too |
9 |
|
10 |
--- |
11 |
pym/portage/elog/mod_save.py | 3 ++- |
12 |
pym/portage/elog/mod_save_summary.py | 3 ++- |
13 |
2 files changed, 4 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/pym/portage/elog/mod_save.py b/pym/portage/elog/mod_save.py |
16 |
index bfccd77..c69f4a3 100644 |
17 |
--- a/pym/portage/elog/mod_save.py |
18 |
+++ b/pym/portage/elog/mod_save.py |
19 |
@@ -18,7 +18,8 @@ def process(mysettings, key, logentries, fulltext): |
20 |
if mysettings.get("PORT_LOGDIR"): |
21 |
logdir = normalize_path(mysettings["PORT_LOGDIR"]) |
22 |
else: |
23 |
- logdir = os.path.join(mysettings["EPREFIX"], "var", "log", "portage") |
24 |
+ logdir = os.path.join(os.sep, mysettings["EPREFIX"].lstrip(os.sep), |
25 |
+ "var", "log", "portage") |
26 |
|
27 |
if not os.path.isdir(logdir): |
28 |
# Only initialize group/mode if the directory doesn't |
29 |
|
30 |
diff --git a/pym/portage/elog/mod_save_summary.py b/pym/portage/elog/mod_save_summary.py |
31 |
index 3196d43..347f66e 100644 |
32 |
--- a/pym/portage/elog/mod_save_summary.py |
33 |
+++ b/pym/portage/elog/mod_save_summary.py |
34 |
@@ -18,7 +18,8 @@ def process(mysettings, key, logentries, fulltext): |
35 |
if mysettings.get("PORT_LOGDIR"): |
36 |
logdir = normalize_path(mysettings["PORT_LOGDIR"]) |
37 |
else: |
38 |
- logdir = os.path.join(mysettings["EPREFIX"], "var", "log", "portage") |
39 |
+ logdir = os.path.join(os.sep, mysettings["EPREFIX"].lstrip(os.sep), |
40 |
+ "var", "log", "portage") |
41 |
|
42 |
if not os.path.isdir(logdir): |
43 |
# Only initialize group/mode if the directory doesn't |