summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index 69763aedd..a51990303 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -15,7 +15,7 @@ bad = create_color_func("BAD")
ostype=os.uname()[0]
userland = None
-lchown = getattr(os, "lchown")
+lchown = getattr(os, "lchown", None)
os.environ.setdefault("XARGS", "xargs")
if ostype=="Linux" or ostype.lower().endswith("gnu"):
userland="GNU"