From: Zac Medico Date: Mon, 21 Sep 2009 20:44:30 +0000 (-0000) Subject: Fix PORTAGE_WORKDIR_MODE parsing code so it doesn't store python's octal X-Git-Tag: v2.2_rc42~59 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b7cf954ca3c8273343876e9f8e3dd6728c56c52e;p=portage.git Fix PORTAGE_WORKDIR_MODE parsing code so it doesn't store python's octal syntax in the environment variable. svn path=/main/trunk/; revision=14365 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index dcd38bb89..10e51983a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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)