Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Fabian Groffen (grobian)" <grobian@g.o>
Subject: portage r10557 - main/branches/prefix/pym/portage
Date: Tue, 03 Jun 2008 19:52:12 +0000
Author: grobian
Date: 2008-06-03 19:52:11 +0000 (Tue, 03 Jun 2008)
New Revision: 10557

Modified:
   main/branches/prefix/pym/portage/__init__.py
Log:
Fix wrong path being attempted to be created (missing /)

Modified: main/branches/prefix/pym/portage/__init__.py
===================================================================
--- main/branches/prefix/pym/portage/__init__.py	2008-06-03 15:46:05 UTC (rev 10556)
+++ main/branches/prefix/pym/portage/__init__.py	2008-06-03 19:52:11 UTC (rev 10557)
@@ -1682,15 +1682,15 @@
 
 		#                                     gid, mode, mask, preserve_perms
 		dir_mode_map = {
-			EPREFIX_LSTRIP+"tmp" : (                   -1, 01777,  0,  True),
-			EPREFIX_LSTRIP+"var/tmp" : (               -1, 01777,  0,  True),
+			EPREFIX_LSTRIP+"/tmp" : (                  -1, 01777,  0,  True),
+			EPREFIX_LSTRIP+"/var/tmp" : (              -1, 01777,  0,  True),
 			PRIVATE_PATH      : (             portage_gid, 02750, 02,  False),
-			CACHE_PATH.lstrip(os.path.sep) : (portage_gid,  0755, 02,  False)
+			CACHE_PATH                     : (portage_gid,  0755, 02,  False)
 		}
 
 		for mypath, (gid, mode, modemask, preserve_perms) \
 			in dir_mode_map.iteritems():
-			mydir = os.path.join(self["ROOT"], mypath)
+			mydir = os.path.join(self["ROOT"], mypath.lstrip(os.path.sep))
 			if preserve_perms and os.path.isdir(mydir):
 				# Only adjust permissions on some directories if
 				# they don't exist yet. This gives freedom to the

-- 
gentoo-commits@g.o mailing list


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in net-im/ysm: ChangeLog ysm-2.9.0.ebuild ysm-2.9.6.ebuild ysm-2.8.1-r1.ebuild ysm-2.9.8.ebuild
Next by thread:
gentoo-x86 commit in sys-libs/timezone-data: timezone-data-2008c.ebuild
Previous by date:
gentoo-x86 commit in net-im/ysm: ChangeLog ysm-2.9.0.ebuild ysm-2.9.6.ebuild ysm-2.8.1-r1.ebuild ysm-2.9.8.ebuild
Next by date:
gentoo-x86 commit in sys-libs/timezone-data: timezone-data-2008c.ebuild


Updated Apr 09, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.