Fix PORTAGE_WORKDIR_MODE parsing code so it doesn't store python's octal
authorZac Medico <zmedico@gentoo.org>
Mon, 21 Sep 2009 20:44:30 +0000 (20:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 21 Sep 2009 20:44:30 +0000 (20:44 -0000)
syntax in the environment variable.

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

pym/portage/__init__.py

index dcd38bb89ebcee389ca46719b5ef75dfbd3e3e18..10e51983a94ed421425b1ab05a477026f49bef3f 100644 (file)
@@ -6286,7 +6286,7 @@ def _prepare_workdir(mysettings):
                        writemsg("%s\n" % e)
                writemsg(_("!!! Unable to parse PORTAGE_WORKDIR_MODE='%s', using %s.\n") % \
                (mysettings["PORTAGE_WORKDIR_MODE"], oct(workdir_mode)))
-       mysettings["PORTAGE_WORKDIR_MODE"] = oct(workdir_mode)
+       mysettings["PORTAGE_WORKDIR_MODE"] = oct(workdir_mode).replace('o', '')
        try:
                apply_secpass_permissions(mysettings["WORKDIR"],
                uid=portage_uid, gid=portage_gid, mode=workdir_mode)