diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-04-05 22:27:54 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-04-05 22:27:54 +0000 |
commit | 37658c36857d8e1483a0efe7487e6621d9fd5095 (patch) | |
tree | a6985c571d52358436355119d5b23f2a462db2c2 | |
parent | d4439033a59b6443ccd24442d2b42f6272dd416d (diff) | |
download | portage-37658c36857d8e1483a0efe7487e6621d9fd5095.tar.gz portage-37658c36857d8e1483a0efe7487e6621d9fd5095.tar.bz2 portage-37658c36857d8e1483a0efe7487e6621d9fd5095.zip |
Provide a default value to the getattr call.
svn path=/main/trunk/; revision=6344
-rw-r--r-- | pym/portage/data.py | 2 |
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" |