From 0b93a666b7d09d709a563d9ef76637ef7bbcd444 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 5 Mar 2006 00:10:40 +0000 Subject: Strip the leading slash from WORLD_FILE so that os.path.join works correctly for bug #124471. Thanks to Thomas de Grenier de Latour for finding the cause of the problem and Jonathan Adamczewski for the initial report. svn path=/main/trunk/; revision=2812 --- pym/portage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym/portage.py') diff --git a/pym/portage.py b/pym/portage.py index 8dd2866b0..c36e19193 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5826,7 +5826,8 @@ class dblink: os.chown(pdir, 0, portage_gid) os.chmod(pdir, 02770) - write_atomic(os.path.join(self.myroot,WORLD_FILE),"\n".join(newworldlist)) + write_atomic(os.path.join(self.myroot, WORLD_FILE.lstrip(os.sep)), + "\n".join(newworldlist)) #do original postrm if myebuildpath and os.path.exists(myebuildpath): -- cgit v1.2.3-1-g7c22