store rootgid in portage.const_autotool.py, and use it instead of hardcoded 0
authorFabian Groffen <grobian@gentoo.org>
Mon, 9 Jun 2008 20:03:53 +0000 (20:03 -0000)
committerFabian Groffen <grobian@gentoo.org>
Mon, 9 Jun 2008 20:03:53 +0000 (20:03 -0000)
svn path=/main/branches/prefix/; revision=10624

pym/portage/__init__.py
pym/portage/const_autotool.py

index 1fee3e8d956478332e0c2470a44595e717977114..390ec238dcbcbfff01a125ea408b2ae1be32d149 100644 (file)
@@ -93,7 +93,7 @@ try:
                DEPRECATED_PROFILE_FILE, USER_VIRTUALS_FILE, EBUILD_SH_ENV_FILE, \
                INVALID_ENV_FILE, CUSTOM_MIRRORS_FILE, CONFIG_MEMORY_FILE,\
                INCREMENTALS, EAPI, MISC_SH_BINARY, REPO_NAME_LOC, REPO_NAME_FILE, \
-               EPREFIX, EPREFIX_LSTRIP, BPREFIX
+               EPREFIX, EPREFIX_LSTRIP, BPREFIX, rootgid
 
        from portage.data import ostype, lchown, userland, secpass, uid, wheelgid, \
                                 portage_uid, portage_gid, userpriv_groups
@@ -3396,7 +3396,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                        # to have root's gid. Therefore, use root's gid instead of
                        # portage's gid to avoid spurrious permissions adjustments
                        # when inside fakeroot.
-                       dir_gid = 0
+                       dir_gid = rootgid
                distdir_dirs = [""]
                if "distlocks" in features:
                        distdir_dirs.append(".locks")
index c1b1e124fd78c8262d1008315008a0584036b116..8a5c5e9ac47aea1b3fad4ea50f5aa30f83a36d2c 100644 (file)
@@ -5,7 +5,7 @@
 # all vars that are to wind up in portage_const must have their name listed in __all__
 
 __all__ = ["EAPIPREFIX", "EPREFIX", "SYSCONFDIR", "DATADIR", "PORTAGE_BASE",
-               "portageuser", "portagegroup", "rootuser", "rootuid"]
+               "portageuser", "portagegroup", "rootuser", "rootuid", "rootgid"]
 
 from os import path
 
@@ -19,3 +19,4 @@ portagegroup = "@portagegroup@"
 portageuser  = "@portageuser@"
 rootuser     = "@rootuser@"
 rootuid      = @rootuid@
+rootgid      = @rootgid@