summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2673c7063..db69e881c 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2546,7 +2546,7 @@ def prepare_build_dirs(myroot, mysettings, cleanup):
try:
mode = mysettings["PORTAGE_WORKDIR_MODE"]
if mode.isdigit():
- parsed_mode = int(mode)
+ parsed_mode = int(mode, 8)
elif mode == "":
raise KeyError()
else: