summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-29 12:14:27 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-29 12:14:27 +0000
commita3b5b8c16dbcb5f5057fef56bcdc85ed0ab3ad0b (patch)
tree5bdb134108221860527d856c5653d817a75cc2c5
parentb7a57530eebde2fdbce834ca1731cbf0c7f4ee74 (diff)
downloadportage-a3b5b8c16dbcb5f5057fef56bcdc85ed0ab3ad0b.tar.gz
portage-a3b5b8c16dbcb5f5057fef56bcdc85ed0ab3ad0b.tar.bz2
portage-a3b5b8c16dbcb5f5057fef56bcdc85ed0ab3ad0b.zip
Add back support for silent definition of the dummy lchown()
function when ostype == Darwin. svn path=/main/trunk/; revision=9101
-rw-r--r--pym/portage/data.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index a3dbfb885..5fc811e43 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -19,6 +19,10 @@ else:
lchown = getattr(os, "lchown", None)
if not lchown:
+ if ostype == "Darwin":
+ def lchown(*pos_args, **key_args):
+ pass
+ else:
try:
import missingos
lchown = missingos.lchown