summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-17 23:30:01 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-17 23:30:01 +0000
commit38375d35ae71d68e9bff8945a242c2380de0098b (patch)
treedd26e29993256a7fbc9026bba08d8dbbb0e9e540
parentf3ed2ee4f69b89cf0e4c7b5a8fca690692b90aaa (diff)
downloadportage-38375d35ae71d68e9bff8945a242c2380de0098b.tar.gz
portage-38375d35ae71d68e9bff8945a242c2380de0098b.tar.bz2
portage-38375d35ae71d68e9bff8945a242c2380de0098b.zip
Log parallel-fetch output to /var/log/emerge-fetch.log just in case it's needed. See bug #137105.
svn path=/main/trunk/; revision=3525
-rwxr-xr-xbin/emerge11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/emerge b/bin/emerge
index a5b15211e..cb66603fe 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1936,10 +1936,15 @@ class depgraph:
sys.stdout.close()
sys.stderr.close()
time.sleep(3) # allow the parent to have first fetch
- sys.stdout = open("/dev/null","w")
- sys.stderr = open("/dev/null","w")
+ fetchlog = "/var/log/emerge-fetch.log"
+ sys.stdout = open(fetchlog, "a")
+ sys.stderr = sys.stdout
os.dup2(sys.stdout.fileno(), 1)
- os.dup2(sys.stdout.fileno(), 2)
+ os.dup2(sys.stderr.fileno(), 2)
+ portage_util.apply_secpass_permissions(fetchlog,
+ uid=portage.portage_uid, gid=portage.portage_gid,
+ mode=0660)
+
# wipe the mtimedb so that portage doesn't attempt to flush it.
# do not convert this code away from a fork without correcting this.
portage.mtimedb = None