From a3b5b8c16dbcb5f5057fef56bcdc85ed0ab3ad0b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Dec 2007 12:14:27 +0000 Subject: [PATCH] Add back support for silent definition of the dummy lchown() function when ostype == Darwin. svn path=/main/trunk/; revision=9101 --- pym/portage/data.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.26.2