From 37658c36857d8e1483a0efe7487e6621d9fd5095 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 5 Apr 2007 22:27:54 +0000 Subject: [PATCH] Provide a default value to the getattr call. svn path=/main/trunk/; revision=6344 --- pym/portage/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.26.2