When creating the temporary $DISTDIR, do not try to set the uid since it
authorZac Medico <zmedico@gentoo.org>
Sat, 25 Oct 2008 18:20:16 +0000 (18:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 25 Oct 2008 18:20:16 +0000 (18:20 -0000)
will fail when not running as root.

svn path=/main/trunk/; revision=11725

pym/portage/__init__.py

index 3ec0f08d704c41fb352a6d51d3ac0e022cdc21bd..cb3ebed4573c24385922290db55196c75156d13c 100644 (file)
@@ -5656,7 +5656,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                        mysettings["PORTAGE_ACTUAL_DISTDIR"] = orig_distdir
                        edpath = mysettings["DISTDIR"] = \
                                os.path.join(mysettings["PORTAGE_BUILDDIR"], "distdir")
-                       portage.util.ensure_dirs(edpath, uid=portage_uid, mode=0755)
+                       portage.util.ensure_dirs(edpath, gid=portage_gid, mode=0755)
 
                        # Remove any unexpected files or directories.
                        for x in os.listdir(edpath):